mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Code coverage via CodeCov on PHP7 builds
PHP7+phpdbg is waaaay faster: http://blog.remirepo.net/post/2015/11/09/PHPUnit-code-coverage-benchmark
This commit is contained in:
parent
99f98e51d0
commit
345b4d56e6
@ -34,14 +34,14 @@ matrix:
|
||||
- php: 5.6
|
||||
env: DB=MYSQL CMS_TEST=1 BEHAT_TEST=1
|
||||
- php: 7.0
|
||||
env: DB=MYSQL PDO=1 PHPUNIT_TEST=1
|
||||
env: DB=MYSQL PDO=1 PHPUNIT_COVERAGE_TEST=1
|
||||
allow_failures:
|
||||
- php: 5.6
|
||||
env: DB=MYSQL CMS_TEST=1 PHPUNIT_TEST=1
|
||||
- php: 5.6
|
||||
env: DB=MYSQL CMS_TEST=1 BEHAT_TEST=1
|
||||
- php: 7.0
|
||||
env: DB=MYSQL PDO=1 PHPUNIT_TEST=1
|
||||
env: DB=MYSQL PDO=1 PHPUNIT_COVERAGE_TEST=1
|
||||
|
||||
before_script:
|
||||
- printf "\n" | pecl install imagick
|
||||
@ -67,6 +67,8 @@ script:
|
||||
- "if [ \"$BEHAT_TEST\" = \"1\" ] && [ \"$CMS_TEST\" = \"1\" ]; then vendor/bin/behat @cms --config cms/tests/behat/behat.yml; fi"
|
||||
- "if [ \"$NPM_TEST\" = \"1\" ]; then npm run test; fi"
|
||||
- "if [ \"$NPM_TEST\" = \"1\" ]; then npm run lint; fi"
|
||||
- "if [ \"$PHPUNIT_COVERAGE_TEST\" = \"1\" ] && [ \"$CMS_TEST\" = \"\" ]; then phpdbg -qrr ./vendor/bin/phpunit --coverage-clover=coverage.xml; fi"
|
||||
- "if [ \"$PHPUNIT_COVERAGE_TEST\" = \"1\" ] && [ \"$CMS_TEST\" = \"\" ]; then bash <(curl -s https://codecov.io/bash) -f coverage.xml; fi"
|
||||
|
||||
after_failure:
|
||||
- php ~/travis-support/travis_upload_artifacts.php --if-env BEHAT_TEST,ARTIFACTS_BUCKET,ARTIFACTS_KEY,ARTIFACTS_SECRET --target-path $TRAVIS_REPO_SLUG/$TRAVIS_BUILD_ID/$TRAVIS_JOB_ID --artifacts-base-url https://s3.amazonaws.com/$ARTIFACTS_BUCKET/
|
||||
|
@ -3,6 +3,7 @@
|
||||
[](https://travis-ci.org/silverstripe/silverstripe-framework)
|
||||
[](http://www.silverstripe.org/stable-download/)
|
||||
[](https://packagist.org/packages/silverstripe/framework)
|
||||
[](https://codecov.io/gh/silverstripe/silverstripe-framework)
|
||||
[](https://packagist.org/packages/silverstripe/framework)
|
||||
[](https://github.com/silverstripe/silverstripe-framework#license)
|
||||
[](https://www.versioneye.com/php/silverstripe:framework)
|
||||
|
Loading…
x
Reference in New Issue
Block a user