Skip to content
This repository has been archived by the owner on May 11, 2021. It is now read-only.

Commit

Permalink
Update .travis.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkSide666 committed Dec 5, 2018
1 parent 73fc10a commit 335f560
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions .travis.yml
Expand Up @@ -26,20 +26,19 @@ before_script:

script:
- if [[ ${TRAVIS_PHP_VERSION:0:3} == "7.2" ]]; then CM=""; NC=""; else CM=""; NC="--no-coverage"; fi
- echo $NC
- $CM ./vendor/bin/phpunit $NC
- $CM ./vendor/bin/phpunit --configuration phpunit.xml $NC
- $CM ./vendor/bin/phpunit --configuration phpunit-mysql.xml $NC
- $CM ./vendor/bin/phpunit --configuration phpunit-pgsql.xml $NC

after_script:
- if [[ ${TRAVIS_PHP_VERSION:0:3} == "7.2" ]]; then
echo "Merging coverage reports - DO NOT WORK";
vendor/bin/phpcov merge build/logs/ --clover build/logs/cc.xml;
ls -l build/logs;
echo "Sending codeclimate report";
vendor/bin/test-reporter --coverage-report cc.xml;
echo "Sending codecov report";
TRAVIS_CMD="" bash <(curl -s https://codecov.io/bash) -f cc.xml;
echo "Merging coverage reports - DO NOT WORK";
vendor/bin/phpcov merge build/logs/ --clover build/logs/cc.xml;
ls -l build/logs;
echo "Sending codeclimate report";
vendor/bin/test-reporter --coverage-report build/logs/cc.xml;
echo "Sending codecov report";
TRAVIS_CMD="" bash <(curl -s https://codecov.io/bash) -f build/logs/cc.xml;
fi

notifications:
Expand Down

0 comments on commit 335f560

Please sign in to comment.