File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change 1+ env :
2+ global :
3+ - CC_TEST_REPORTER_ID=0ba904403dda60fd3095aa5d56887d3b004f935f27cecc5133a3a09fcf35a69a
4+ - GIT_COMMITTED_AT=$(if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then git log -1 --pretty=format:%ct; else git log -1 --skip 1 --pretty=format:%ct; fi)
5+
16language : php
27php :
38 - 7.0
@@ -9,10 +14,15 @@ before_script:
914 - echo "memory_limit = 256M" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
1015 - pecl install trader > /dev/null
1116 - composer update
17+ - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
18+ - chmod +x ./cc-test-reporter
19+ - ./cc-test-reporter before-build
1220
1321script :
1422 - vendor/bin/phpunit --configuration ./phpunit_coverage.xml --coverage-clover build/logs/clover.xml
1523
1624after_success :
25+ - php vendor/bin/codacycoverage clover build/logs/clover.xml
1726 - wget https://github.com/php-coveralls/php-coveralls/releases/download/v2.0.0/php-coveralls.phar
1827 - php php-coveralls.phar --verbose;
28+ - if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT; fi
Original file line number Diff line number Diff line change 1818 "require-dev" : {
1919 "phpunit/phpunit" : " ~6.0" ,
2020 "phpmetrics/phpmetrics" : " ~2.3" ,
21- "ext-trader" : " ~0.4"
21+ "ext-trader" : " ~0.4" ,
22+ "codacy/coverage" : " ~1.4"
2223 },
2324 "autoload" : {
2425 "psr-4" : {
You can’t perform that action at this time.
0 commit comments