Skip to content

Commit 41f89d0

Browse files
committed
Updated master to match the release branch
1 parent 574998e commit 41f89d0

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

.travis.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
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+
16
language: php
27
php:
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

1321
script:
1422
- vendor/bin/phpunit --configuration ./phpunit_coverage.xml --coverage-clover build/logs/clover.xml
1523

1624
after_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

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
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": {

0 commit comments

Comments
 (0)