Skip to content

Commit bbb3249

Browse files
authored
Update .travis.yml
1 parent cce051d commit bbb3249

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

.travis.yml

+6-7
Original file line numberDiff line numberDiff line change
@@ -28,26 +28,25 @@ matrix:
2828
env: DB=pgsql db_dsn='postgres://[email protected]/cakephp_test'
2929

3030
before_script:
31-
- composer self-update
3231
- composer install --prefer-source --no-interaction
3332

34-
- if [[ $PHPCS != 1 ]]; then composer require phpunit/phpunit:"^4.8|^5.7|^6.0"; fi
33+
- if [[ $PHPCS != 1 ]]; then composer require phpunit/phpunit:"^4.8|^5.7|^6.0" ; fi
3534

36-
- sh -c "if [ '$DB' = 'mysql' ]; then mysql -u root -e 'CREATE DATABASE cakephp_test;'; fi"
37-
- sh -c "if [ '$DB' = 'pgsql' ]; then psql -c 'CREATE DATABASE cakephp_test;' -U postgres; fi"
35+
- if [[ $DB == 'mysql' ]]; then mysql -u root -e 'CREATE DATABASE cakephp_test;' ; fi
36+
- if [[ $DB == 'pgsql' ]]; then psql -c 'CREATE DATABASE cakephp_test;' -U postgres ; fi
3837

3938
- phpenv rehash
4039
- set +H
4140
- cp phpunit.xml.dist phpunit.xml
4241

4342
script:
44-
- if [[ $DEFAULT == 1 && $TRAVIS_PHP_VERSION == 7.0 ]]; then export CODECOVERAGE=1; vendor/bin/phpunit --coverage-clover=clover.xml; fi
45-
- if [[ $DEFAULT == 1 && $TRAVIS_PHP_VERSION != 7.0 ]]; then vendor/bin/phpunit; fi
43+
- if [[ $DEFAULT == 1 && $TRAVIS_PHP_VERSION == 7.0 ]]; then export CODECOVERAGE=1; vendor/bin/phpunit --coverage-clover=clover.xml ; fi
44+
- if [[ $DEFAULT == 1 && $TRAVIS_PHP_VERSION != 7.0 ]]; then vendor/bin/phpunit ; fi
4645

4746
- if [[ $PHPCS == 1 ]]; then vendor/bin/phpcs -p --extensions=php --standard=vendor/fig-r/psr2r-sniffer/PSR2R/ruleset.xml --ignore=/vendor/,/tmp/,/logs/,/config/Migrations/ -v . ; fi
4847

4948
after_success:
50-
- if [[ $DEFAULT == 1 && $TRAVIS_PHP_VERSION == 7.0 ]]; then bash <(curl -s https://codecov.io/bash); fi
49+
- if [[ $DEFAULT == 1 && $TRAVIS_PHP_VERSION == 7.0 ]]; then bash <(curl -s https://codecov.io/bash) ; fi
5150

5251
notifications:
5352
email: false

0 commit comments

Comments
 (0)