diff --git a/.travis.yml b/.travis.yml index ccbaa51d790..d01cfe3fa00 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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) diff --git a/tests/bin/travis.sh b/tests/bin/travis.sh index b04b7973d34..82690275f74 100755 --- a/tests/bin/travis.sh +++ b/tests/bin/travis.sh @@ -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