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
+
1
6
language : php
2
7
php :
3
8
- 7.0
@@ -9,10 +14,15 @@ before_script:
9
14
- echo "memory_limit = 256M" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
10
15
- pecl install trader > /dev/null
11
16
- 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
12
20
13
21
script :
14
22
- vendor/bin/phpunit --configuration ./phpunit_coverage.xml --coverage-clover build/logs/clover.xml
15
23
16
24
after_success :
25
+ - php vendor/bin/codacycoverage clover build/logs/clover.xml
17
26
- wget https://github.com/php-coveralls/php-coveralls/releases/download/v2.0.0/php-coveralls.phar
18
27
- 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 18
18
"require-dev" : {
19
19
"phpunit/phpunit" : " ~6.0" ,
20
20
"phpmetrics/phpmetrics" : " ~2.3" ,
21
- "ext-trader" : " ~0.4"
21
+ "ext-trader" : " ~0.4" ,
22
+ "codacy/coverage" : " ~1.4"
22
23
},
23
24
"autoload" : {
24
25
"psr-4" : {
You can’t perform that action at this time.
0 commit comments