mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
TEST Move coverage build to the start of the matrix, and only post coverage on success
This commit is contained in:
parent
2bb61dcfcc
commit
8fa9207693
11
.travis.yml
11
.travis.yml
@ -20,6 +20,9 @@ env:
|
||||
|
||||
matrix:
|
||||
include:
|
||||
- php: 7.1
|
||||
env: DB=MYSQL CORE_RELEASE=4 COVERAGE=1
|
||||
|
||||
- php: 5.5
|
||||
env: DB=MYSQL CORE_RELEASE=4
|
||||
|
||||
@ -33,10 +36,6 @@ matrix:
|
||||
- php: 7.0
|
||||
env: DB=MYSQL CORE_RELEASE=4
|
||||
|
||||
- php: 7.1
|
||||
env: DB=MYSQL CORE_RELEASE=4 COVERAGE=1
|
||||
|
||||
|
||||
before_script:
|
||||
- phpenv rehash
|
||||
- composer self-update || true
|
||||
@ -53,8 +52,8 @@ script:
|
||||
# Execute tests with coverage. Do this for a small
|
||||
- "if [ \"$COVERAGE\" = \"1\" ]; then vendor/bin/phpunit --coverage-clover=coverage.clover $MODULE_PATH/tests/; fi"
|
||||
|
||||
#Upload coverage even if there is a failure
|
||||
after_script:
|
||||
# Upload code coverage when tests pass
|
||||
after_success:
|
||||
- "if [ \"$COVERAGE\" = \"1\" ]; then mv coverage.clover ~/build/$TRAVIS_REPO_SLUG/; fi"
|
||||
- cd ~/build/$TRAVIS_REPO_SLUG
|
||||
- "if [ \"$COVERAGE\" = \"1\" ]; then travis_retry codecov; fi"
|
||||
|
Loading…
Reference in New Issue
Block a user