X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=scripts%2Ftravis.sh;h=79be234935849ce6c95618806c2b04ecbba19dca;hb=6cca7360eb9027e1544f7513df7da4684061ef7e;hp=ea0dc869979934149bc4fb700e6bd1f1ced6c70f;hpb=dfecb9003600913f8c3130a87e5b403d6686a55f;p=github%2FChocobozzz%2FPeerTube.git 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 @@ -#!/bin/bash +#!/bin/sh + +set -eu if [ $# -eq 0 ]; then echo "Need test suite argument." @@ -21,9 +23,9 @@ elif [ "$1" = "api-slow" ]; then npm run build:server mocha --timeout 5000 --exit --require ts-node/register/type-check --bail server/tests/api/index-slow.ts elif [ "$1" = "lint" ]; then - cd client || exit -1 - npm run lint || exit -1 + ( cd client + npm run lint + ) - cd .. || exit -1 - npm run tslint -- --project ./tsconfig.json -c ./tslint.json server.ts "server/**/*.ts" "shared/**/*.ts" || exit -1 + npm run tslint -- --project ./tsconfig.json -c ./tslint.json server.ts "server/**/*.ts" "shared/**/*.ts" fi