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 7d3667f commit 73fc10a
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .travis.yml
Expand Up @@ -26,14 +26,21 @@ 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-mysql.xml $NC
- $CM ./vendor/bin/phpunit --configuration phpunit-pgsql.xml $NC

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

notifications:
urls:
Expand Down

0 comments on commit 73fc10a

Please sign in to comment.