You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

14 line
597 B

  1. env:
  2. global:
  3. - CC_TEST_REPORTER_ID=1937cd951ca5a26580a65f98a7b627eb92126bdd2b272e3dec71f8396062d210
  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. language: node_js
  6. node_js:
  7. - "6.1"
  8. before_script:
  9. - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
  10. - chmod +x ./cc-test-reporter
  11. script:
  12. - npm test
  13. - if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT; fi