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