From 4f9800e190d5c0cf7f1bb5bcca67acc4e816c15c Mon Sep 17 00:00:00 2001 From: Robbie Averill Date: Sun, 15 Jan 2017 15:46:35 +1300 Subject: [PATCH] FIX Travis builds broken with external code coverage --- .travis.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 633ef98..3d7651b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -23,8 +23,9 @@ before_script: script: - vendor/bin/phpunit --coverage-clover coverage.clover userforms/tests + +after_script: + - mv coverage.clover ~/build/$TRAVIS_REPO_SLUG/ + - cd ~/build/$TRAVIS_REPO_SLUG - wget https://scrutinizer-ci.com/ocular.phar - - cd ./userforms - - git remote rm origin - - git remote add origin git@github.com:silverstripe/silverstripe-userforms.git - php ocular.phar code-coverage:upload --format=php-clover coverage.clover