File tree Expand file tree Collapse file tree 1 file changed +12
-18
lines changed
Expand file tree Collapse file tree 1 file changed +12
-18
lines changed Original file line number Diff line number Diff line change 11language : php
22
33php :
4+ - 7.0
45 - 5.5
56 - 5.6
7+ - 7.1
8+
9+ dist : trusty
610
711sudo : false
812
913env :
10- matrix :
11- - DB=mysql db_dsn='mysql://travis@0.0.0.0/cakephp_test'
12- - DB=pgsql db_dsn='postgres://postgres@127.0.0.1/cakephp_test'
13- - DB=sqlite db_dsn='sqlite:///:memory:'
14-
1514 global :
1615 - DEFAULT=1
1716
@@ -22,24 +21,19 @@ matrix:
2221 - php : 7.0
2322 env : PHPCS=1 DEFAULT=0
2423
25- - php : 7.0
26- env : CODECOVERAGE=1 DEFAULT=0 DB=mysql db_dsn='mysql://travis@0.0.0.0/cakephp_test'
27-
2824before_script :
29- - composer self-update
25+ - if [[ $TRAVIS_PHP_VERSION != 7.0 ]]; then phpenv config-rm xdebug.ini; fi
26+
3027 - composer install --prefer-dist --no-interaction
3128
32- - sh -c "if [ '$DB' = 'mysql' ]; then mysql -e 'CREATE DATABASE cakephp_test;'; fi"
33- - sh -c "if [ '$DB' = 'pgsql' ]; then psql -c 'CREATE DATABASE cakephp_test;' -U postgres; fi"
29+ script :
30+ - if [[ $DEFAULT = 1 && $TRAVIS_PHP_VERSION = 7.0 ]]; then phpunit --coverage-clover=clover.xml; fi
31+ - if [[ $DEFAULT = 1 && $TRAVIS_PHP_VERSION != 7.0 ]]; then phpunit; fi
3432
35- - sh -c " if [ ' $PHPCS' = '1' ] ; then composer require cakephp/cakephp-codesniffer:dev-master ; fi"
33+ - if [[ $PHPCS = 1 ]] ; then ./vendor/bin/phpcs -p --extensions=php --standard=vendor/ cakephp/cakephp-codesniffer/CakePHP ./src ./tests ; fi
3634
37- script :
38- - sh -c "if [ '$DEFAULT' = '1' ]; then phpunit --stderr; fi"
39- - sh -c "if [ '$PHPCS' = '1' ]; then ./vendor/bin/phpcs -p --extensions=php --standard=vendor/cakephp/cakephp-codesniffer/CakePHP ./src ./tests; fi"
40- - sh -c "if [ '$CODECOVERAGE' = '1' ]; then phpunit --coverage-clover=clover.xml || true; fi"
41- - sh -c "if [ '$CODECOVERAGE' = '1' ]; then wget -O codecov.sh https://codecov.io/bash; fi"
42- - sh -c "if [ '$CODECOVERAGE' = '1' ]; then bash codecov.sh; fi"
35+ after_success :
36+ - if [[ $DEFAULT = 1 && $TRAVIS_PHP_VERSION = 7.0 ]]; then bash <(curl -s https://codecov.io/bash); fi
4337
4438notifications :
4539 email : false
You can’t perform that action at this time.
0 commit comments