From 0e4ffb4b678962d5ff7a4a7d8952033bc84725da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Andr=C3=A8s?= Date: Tue, 27 Mar 2018 09:35:12 +0100 Subject: Clean shell scripts (#398) --- scripts/travis.sh | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'scripts/travis.sh') 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 -- cgit v1.2.3