Skip to content

Commit

Permalink
Code Climate test reporter (#108)
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkaOnLine authored Jan 11, 2018
1 parent 6904ab2 commit 57b66dc
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,18 @@ before_install:
install:
- travis_retry composer update $DEFAULT_COMPOSER_FLAGS
- composer info -D | sort
before_script:
- 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:
- chown -R travis:travis /home/travis/build/DarkaOnLine/L5-Swagger
- chmod -R 777 /home/travis/build/DarkaOnLine/L5-Swagger
- vendor/bin/phpunit
- cp tests/storage/logs/test-reports/clover.xml clover.xml
after_success:
#- if [ $REPORT_TESTS_COVERAGE == 1 ]; then php vendor/bin/test-reporter --coverage-report=./tests/storage/logs/test-reports/clover.xml; fi
- if [ $REPORT_TESTS_COVERAGE == 1 ] && [ $TRAVIS_PULL_REQUEST == "false" ]; then ./cc-test-reporter after-build -t clover --exit-code $TRAVIS_TEST_RESULT; fi
- if [ $REPORT_TESTS_COVERAGE == 1 ]; then php vendor/bin/coveralls -v; fi

#addons:
# code_climate:
# repo_token: CODECLIMATE_REPO_TOKEN
notifications:
email: false
slack:
Expand Down

0 comments on commit 57b66dc

Please sign in to comment.