Skip to content
This repository has been archived by the owner on Jan 26, 2022. It is now read-only.

Commit

Permalink
refs #56: update code climate reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
mavimo committed Apr 15, 2018
1 parent efaafb5 commit 1b3d168
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
9 changes: 6 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ php:
env:
- dependencies=lowest
- dependencies=highest
- CC_TEST_REPORTER_ID=1236a1650f2cb22f334ec37e96e7e022d11cbf1a8e604a99fc59a3501810fdc6
- 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)

matrix:
allow_failures:
Expand All @@ -20,12 +22,13 @@ before_script:
- composer self-update
- if [ "$dependencies" = "lowest" ]; then composer update --prefer-lowest --no-interaction; fi;
- if [ "$dependencies" = "highest" ]; then composer update --no-interaction; fi;

- 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:
- mkdir -p build/logs
- vendor/bin/phpunit

after_script:
- php vendor/bin/php-coveralls -v
- CODECLIMATE_REPO_TOKEN="1236a1650f2cb22f334ec37e96e7e022d11cbf1a8e604a99fc59a3501810fdc6" vendor/bin/test-reporter --stdout > codeclimate.json
- "curl -X POST -d @codeclimate.json -H 'Content-Type: application/json' -H 'User-Agent: Code Climate (PHP Test Reporter v0.1.1)' https://codeclimate.com/test_reports"
- if [ $(phpenv version-name) = "7.1" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then ./cc-test-reporter after-build --coverage-input-type clover --exit-code $TRAVIS_TEST_RESULT; fi
1 change: 0 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
},
"require-dev": {
"phpunit/phpunit": "^5.7.10",
"codeclimate/php-test-reporter": "^0.1.2",
"symfony/console": "^3.1",
"php-coveralls/php-coveralls": "^2.0"
},
Expand Down

0 comments on commit 1b3d168

Please sign in to comment.