travis-test.sh 341 B

1234567891011121314
  1. set -e
  2. npm run lint
  3. npm run test
  4. if [ "$TRAVIS_BRANCH" != "master" -o -n "$TRAVIS_TAG" -o "$TRAVIS_PULL_REQUEST" != "false" ]; then
  5. echo -e "Not sending coverage for a non master branch push - covering without sending."
  6. exit 0
  7. fi
  8. echo -e "Generating Coverage for a master branch push - covering and sending."
  9. npm run test:coveralls