Skip to content

Commit b7d6291

Browse files
committed
updated travis
1 parent 7d650f1 commit b7d6291

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

.travis.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ cache:
1515
directories:
1616
- $HOME/.composer/cache/files
1717
- tmp/pear/download/
18+
- vendor/
1819
addons:
1920
code_climate:
2021
repo_token: $CODECLIMATE_REPO_TOKEN
@@ -24,10 +25,12 @@ before_script:
2425
- pear install pear/XML_RPC2
2526
- phpenv rehash
2627
- travis_retry composer self-update
27-
- travis_retry composer install --no-interaction --dev --prefer-dist
28+
- travis_retry composer install --no-interaction --dev --prefer-source
2829
script:
29-
- if [ "$TRAVIS_PHP_VERSION" = "7.0" ]; then phpdbg -qrr vendor/bin/phpunit --bootstrap tests/bootstrap.php tests/ -v --coverage-clover build/logs/clover.xml --whitelist src/; else vendor/bin/phpunit --bootstrap tests/bootstrap.php tests/ -v; fi
30+
- if [ "$TRAVIS_PHP_VERSION" = "7.0" ]; then phpdbg -qrr vendor/bin/phpunit --bootstrap tests/bootstrap.php tests/ -v --coverage-clover coverage.xml --whitelist src/; fi;
31+
- if [ "$TRAVIS_PHP_VERSION" != "7.0" ]; then vendor/bin/phpunit --bootstrap tests/bootstrap.php tests/ -v; fi
3032
after_success:
31-
- if [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_PHP_VERSION" == "7.0" ]; then travis_retry vendor/bin/test-reporter --coverage-report=build/logs/clover.xml; fi
32-
- if [ "$TRAVIS_PHP_VERSION" = "7.0" ]; then travis_retry php vendor/bin/coveralls -v --coverage_clover=build/logs/clover.xml; fi;
33-
- if [ "$TRAVIS_PHP_VERSION" = "7.0" ]; then travis_retry php vendor/bin/codacycoverage clover build/logs/clover.xml; fi;
33+
- if [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_PHP_VERSION" == "7.0" ]; then travis_retry vendor/bin/test-reporter --coverage-report=coverage.xml; fi
34+
- if [ "$TRAVIS_PHP_VERSION" = "7.0" ]; then travis_retry bash <(curl -s https://codecov.io/bash); fi;
35+
- if [ "$TRAVIS_PHP_VERSION" = "7.0" ]; then travis_retry php vendor/bin/coveralls -v --coverage_clover=coverage.xml; fi;
36+
- if [ "$TRAVIS_PHP_VERSION" = "7.0" ]; then travis_retry php vendor/bin/codacycoverage clover coverage.xml; fi;

0 commit comments

Comments
 (0)