This commit is contained in:
Mike Jolley 2017-09-26 13:24:11 +01:00
parent 80748089c4
commit be014346f1
2 changed files with 14 additions and 7 deletions

View File

@ -25,16 +25,13 @@ matrix:
dist: precise
before_script:
- travis_retry composer self-update
- travis_retry composer install --no-interaction --prefer-source --dev
- export PATH="$HOME/.composer/vendor/bin:$PATH"
- bash tests/bin/install.sh woocommerce_test root '' localhost $WP_VERSION
- bash tests/bin/travis.sh before
script:
- phpunit --version
- phpunit -c phpunit.xml
- vendor/bin/phpunit --coverage-clover=coverage.xml
- vendor/bin/phpunit -c phpunit.xml --coverage-clover=coverage.clover
after_script:
- bash tests/bin/travis.sh after
after_success:
- bash <(curl -s https://codecov.io/bash)

View File

@ -16,3 +16,13 @@ if [ $1 == 'before' ]; then
fi
fi
if [ $1 == 'after' ]; then
if [[ ${TRAVIS_PHP_VERSION:0:2} == "7." ]]; then
bash <(curl -s https://codecov.io/bash)
fi
fi