forked from Sylius/ShopApiPlugin
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
51 lines (40 loc) · 1.32 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
language: php
dist: trusty
jobs:
include:
- php: '7.2'
env: SYLIUS_VERSION=1.4.*
- php: '7.2'
env: SYLIUS_VERSION=1.5.*
- php: '7.2'
env: SYLIUS_VERSION=1.6.*
- php: '7.3'
env: SYLIUS_VERSION=1.4.*
- php: '7.3'
env: SYLIUS_VERSION=1.5.*
- php: '7.3'
env: SYLIUS_VERSION=1.6.* ANALYSE=y
cache:
directories:
- ~/.composer/cache/files
services:
- mysql
before_install:
- phpenv config-rm xdebug.ini || true
- echo "memory_limit=4096M" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
- cp tests/Application/.env.test.dist tests/Application/.env.test
- set -a && source tests/Application/.env.test && set +a
install:
- composer require sylius/sylius:${SYLIUS_VERSION} --no-interaction --no-update
- composer update --no-interaction --prefer-dist
before_script:
- (cd tests/Application && bin/console doctrine:database:create --env=test -vvv)
- (cd tests/Application && bin/console doctrine:schema:create --env=test -vvv)
script:
- composer validate --strict
- >-
if [ "$ANALYSE" = 'y' ]; then
composer analyse
fi
- vendor/bin/phpspec run --format dot -vvv --no-interaction
- vendor/bin/phpunit