File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11language : php
22
3- php :
4- - 7.1
5- - 7.2
6- - nightly
3+ sudo : false
74
85matrix :
6+ include :
7+ - php : 7.1
8+ env : COLLECT_COVERAGE=true VALIDATE_CODING_STYLE=true
9+ - php : 7.2
10+ env : COLLECT_COVERAGE=true VALIDATE_CODING_STYLE=false
11+ - php : nightly
12+ env : COLLECT_COVERAGE=false VALIDATE_CODING_STYLE=false
913 allow_failures :
10- - php :
11- - nightly
14+ - php : nightly
15+ fast_finish : true
1216
13- before_script : composer install
17+ cache :
18+ directories :
19+ - $HOME/.composer/cache
1420
15- script : vendor/bin/phpunit --coverage-clover=coverage.clover
21+ before_install :
22+ - travis_retry composer self-update
23+
24+ install :
25+ - composer update --no-interaction --prefer-source
26+
27+ script :
28+ - vendor/bin/phpunit --coverage-clover=build/clover.xml
1629
1730after_script :
18- - sh -c 'if [ $(phpenv version-name) = "7.1" ]; then wget https://scrutinizer-ci.com/ocular.phar && php ocular.phar code-coverage:upload --format=php-clover coverage.clover; fi;'
31+ - if [ "$COLLECT_COVERAGE" == "true" ]; then wget https://scrutinizer-ci.com/ocular.phar && php ocular.phar code-coverage:upload --format=php-clover build/clover.xml; fi
32+ - if [ "$VALIDATE_CODING_STYLE" == "true" ]; then php vendor/bin/phpcs; fi
1933
You can’t perform that action at this time.
0 commit comments