Skip to content

Commit a8ae607

Browse files
committed
Update travis config.
1 parent 427e58e commit a8ae607

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

.travis.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ language: php
22

33
php:
44
- 7.0
5-
- 7.2
65
- 7.1
76
- 5.6
87

@@ -13,33 +12,40 @@ sudo: false
1312
env:
1413
global:
1514
- DEFAULT=1
15+
- CODECOVERAGE=0
1616

1717
matrix:
1818
fast_finish: true
1919

2020
include:
21+
- php: 7.2
22+
env: CODECOVERAGE=1 DEFAULT=0
23+
2124
- php: 7.0
2225
env: PHPCS=1 DEFAULT=0
2326

2427
- php: 7.0
2528
env: PHPSTAN=1 DEFAULT=0
2629

30+
- php: 5.6
31+
env: PREFER_LOWEST=1
32+
2733
before_script:
2834
- if [[ $TRAVIS_PHP_VERSION != 7.0 ]]; then phpenv config-rm xdebug.ini; fi
2935

3036
- if [[ $PHPSTAN = 1 ]]; then composer require --dev phpstan/phpstan:^0.9; fi
3137
- if [[ $PHPSTAN != 1 ]]; then composer install --no-interaction; fi
3238

3339
script:
34-
- if [[ $DEFAULT = 1 && $TRAVIS_PHP_VERSION = 7.0 ]]; then ./vendor/bin/phpunit --coverage-clover=clover.xml; fi
35-
- if [[ $DEFAULT = 1 && $TRAVIS_PHP_VERSION != 7.0 ]]; then ./vendor/bin/phpunit; fi
40+
- if [[ $CODECOVERAGE = 1 ]]; then ./vendor/bin/phpunit --coverage-clover=clover.xml; fi
41+
- if [[ $DEFAULT = 1 ]]; then ./vendor/bin/phpunit; fi
3642

3743
- if [[ $PHPCS = 1 ]]; then ./vendor/bin/phpcs -p --extensions=php --standard=vendor/cakephp/cakephp-codesniffer/CakePHP ./src ./tests; fi
3844

3945
- if [[ $PHPSTAN = 1 ]]; then vendor/bin/phpstan analyse -l 2 src; fi
4046

4147
after_success:
42-
- if [[ $DEFAULT = 1 && $TRAVIS_PHP_VERSION = 7.0 ]]; then bash <(curl -s https://codecov.io/bash); fi
48+
- if [[ $CODECOVERAGE = 1 ]]; then bash <(curl -s https://codecov.io/bash); fi
4349

4450
notifications:
4551
email: false

0 commit comments

Comments
 (0)