aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/travis.sh
diff options
context:
space:
mode:
authorLéo Andrès <leo@ndrs.fr>2018-03-27 09:35:12 +0100
committerChocobozzz <me@florianbigard.com>2018-03-27 10:35:12 +0200
commit0e4ffb4b678962d5ff7a4a7d8952033bc84725da (patch)
treeb116dfe4244f645aa1c4740039544010ef7c3194 /scripts/travis.sh
parentd5b7d9110dd637a7f67ce9e430145314812a8df1 (diff)
downloadPeerTube-0e4ffb4b678962d5ff7a4a7d8952033bc84725da.tar.gz
PeerTube-0e4ffb4b678962d5ff7a4a7d8952033bc84725da.tar.zst
PeerTube-0e4ffb4b678962d5ff7a4a7d8952033bc84725da.zip
Clean shell scripts (#398)
Diffstat (limited to 'scripts/travis.sh')
-rwxr-xr-xscripts/travis.sh12
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
3set -eu
2 4
3if [ $# -eq 0 ]; then 5if [ $# -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
23elif [ "$1" = "lint" ]; then 25elif [ "$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
29fi 31fi