Travis
This commit is contained in:
parent
80748089c4
commit
be014346f1
11
.travis.yml
11
.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)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue