-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy path.travis.yml
50 lines (39 loc) · 1.42 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
language: php
php:
- 7.1
- 7.2
env:
- SYMFONY_VERSION=lts:^2
- SYMFONY_VERSION=lts:^3
- SYMFONY_VERSION=flex:^1
- SYMFONY_VERSION=lts:^4
matrix:
fast_finish: true
include:
- env:
- SYMFONY_VERSION=lts:^2
- dependencies=lowest
- env:
- SYMFONY_VERSION=lts:^3
- cs_fixer=cs_dry_run
allow_failures:
- env: SYMFONY_VERSION=lts:^4
cache:
directories:
- $HOME/.composer/cache
before_install:
- mv /home/travis/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini ~/xdebug.ini
- composer self-update
before_script:
- phpenv config-add travis.php.ini
- travis_wait composer require symfony/${SYMFONY_VERSION} --prefer-source --no-update -v
- mv ~/xdebug.ini /home/travis/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini
- if [ "$dependencies" != "lowest" ]; then travis_wait composer update --prefer-source; fi;
- if [ "$dependencies" = "lowest" ]; then travis_wait composer update --prefer-lowest --prefer-stable -n; fi;
script:
- travis_wait vendor/phpunit/phpunit/phpunit --coverage-text --coverage-clover=coverage.clover Tests/
- wget https://scrutinizer-ci.com/ocular.phar
- php ocular.phar code-coverage:upload --format=php-clover coverage.clover
- if [ "$cs_fixer" = "cs_dry_run" ]; then php vendor/friendsofphp/php-cs-fixer/php-cs-fixer --diff --dry-run -v fix --config=.php_cs.dist ./; fi;
notifications:
email: [email protected]