kgltimes/tell-me-about

View on GitHub
.travis.yml

Summary

Maintainability
Test Coverage
language: node_js
node_js:
  - 6
install:
  - npm install
  - npm install -g codecov
before_script:
  - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
  - chmod +x ./cc-test-reporter
script:
- npm run coverage
# Preferably you will run test-reporter on branch update events. But 
# if you setup travis to build PR updates only, you don't need to run 
# the line below
- if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT; fi
# In the case where travis is setup to build PR updates only, 
# uncomment the line below
# - ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
- codecov
env:
  global:
    - CC_TEST_REPORTER_ID=efd30be0bdc784c7136ca29b7d1f0f020a8eba6cb7dd5ab7aac97626ccb7de7b
    - 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)