diff options
Diffstat (limited to 'scripts/travis.sh')
-rwxr-xr-x | scripts/travis.sh | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/scripts/travis.sh b/scripts/travis.sh index ea0dc8699..79be23493 100755 --- a/scripts/travis.sh +++ b/scripts/travis.sh | |||
@@ -1,4 +1,6 @@ | |||
1 | #!/bin/bash | 1 | #!/bin/sh |
2 | |||
3 | set -eu | ||
2 | 4 | ||
3 | if [ $# -eq 0 ]; then | 5 | if [ $# -eq 0 ]; then |
4 | echo "Need test suite argument." | 6 | echo "Need test suite argument." |
@@ -21,9 +23,9 @@ elif [ "$1" = "api-slow" ]; then | |||
21 | npm run build:server | 23 | npm run build:server |
22 | mocha --timeout 5000 --exit --require ts-node/register/type-check --bail server/tests/api/index-slow.ts | 24 | mocha --timeout 5000 --exit --require ts-node/register/type-check --bail server/tests/api/index-slow.ts |
23 | elif [ "$1" = "lint" ]; then | 25 | elif [ "$1" = "lint" ]; then |
24 | cd client || exit -1 | 26 | ( cd client |
25 | npm run lint || exit -1 | 27 | npm run lint |
28 | ) | ||
26 | 29 | ||
27 | cd .. || exit -1 | 30 | npm run tslint -- --project ./tsconfig.json -c ./tslint.json server.ts "server/**/*.ts" "shared/**/*.ts" |
28 | npm run tslint -- --project ./tsconfig.json -c ./tslint.json server.ts "server/**/*.ts" "shared/**/*.ts" || exit -1 | ||
29 | fi | 31 | fi |