summaryrefslogtreecommitdiff
path: root/node_modules/snekfetch/scripts/travis-test.sh
blob: aa4e37ddcbf3a68de5b62a8f52ed0367f9be986b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
set -e

npm run lint

npm run test

if [ "$TRAVIS_BRANCH" != "master" -o -n "$TRAVIS_TAG" -o "$TRAVIS_PULL_REQUEST" != "false" ]; then
  echo -e "Not sending coverage for a non master branch push - covering without sending."
  exit 0
fi

echo -e "Generating Coverage for a master branch push - covering and sending."

npm run test:coveralls