Skip to content

Commit

Permalink
add codeclimate - coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
abbadon1334 committed Jul 4, 2019
1 parent b7b666f commit 3a5af29
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,14 @@ before_script:
- php composer.phar install -n
- composer require satooshi/php-coveralls:~1.0@stable # Require phpCoveralls
- mkdir -p coverage/xml # Create a folder to store clover files
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
- ./cc-test-reporter before-build

script:
- php vendor/bin/phpunit --coverage-clover coverage/xml/clover.xml

after_script:
- php vendor/bin/codacycoverage clover coverage/xml/clover.xml
- sh -c 'if( [ "$TRAVIS_PHP_VERSION" != "hhvm" ] ); then php vendor/bin/coveralls -v; fi;'
- sh -c 'if( [ "$TRAVIS_PHP_VERSION" != "hhvm" ] ); then php vendor/bin/coveralls -v; fi;'
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT

0 comments on commit 3a5af29

Please sign in to comment.