Skip to content

Commit

Permalink
Fix & simplify Travis config
Browse files Browse the repository at this point in the history
  • Loading branch information
jkphl committed Dec 25, 2018
1 parent f24c142 commit c0ca3bc
Showing 1 changed file with 9 additions and 29 deletions.
38 changes: 9 additions & 29 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
language: php
php:
- 7.0
- 7.1
- 7.2
- hhvm
- 7.1
- 7.2
- 7.3
env:
- APP_ENV=development CC_TEST_REPORTER_ID=efd18a36922628f0536f2f08cf7ceca763f5f2feb6f3638037381487ca3312ae
matrix:
Expand All @@ -13,34 +12,15 @@ before_script:
- travis_retry composer self-update
- travis_retry composer install --no-interaction --prefer-source
- touch .env
- >-
if [ "$TRAVIS_PHP_VERSION" == "hhvm" ]; then echo 'date.timezone =
Europe/Berlin' >> /etc/hhvm/php.ini; fi;
- >-
if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then echo 'date.timezone =
Europe/Berlin' >> ~/.phpenv/versions/$(phpenv
version-name)/etc/conf.d/travis.ini; fi;
- echo 'date.timezone = Europe/Berlin' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
- ./cc-test-reporter before-build
script:
- >-
bash -c 'if [ "$TRAVIS_PHP_VERSION" == "hhvm" ]; then vendor/bin/phpunit;
fi;'
- >-
bash -c 'if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then vendor/bin/phpunit
--coverage-clover build/logs/clover.xml; fi;'
- vendor/bin/phpunit --coverage-clover build/logs/clover.xml
after_script:
- >-
bash -c 'if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then wget
https://scrutinizer-ci.com/ocular.phar; fi;'
- >-
bash -c 'if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then php ocular.phar
code-coverage:upload --format=php-clover build/logs/clover.xml; fi;'
- >-
bash -c 'if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then php
vendor/bin/php-coveralls -v; fi;'
- >-
bash -c 'if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then
vendor/bin/test-reporter; fi;'
- wget https://scrutinizer-ci.com/ocular.phar
- php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml
- php vendor/bin/php-coveralls -v
- vendor/bin/test-reporter
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT

0 comments on commit c0ca3bc

Please sign in to comment.