aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/travis.sh
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-07-29 11:59:29 +0200
committerChocobozzz <me@florianbigard.com>2019-07-29 13:40:39 +0200
commit2284f202070aa2e49156cc52b3b1596a7d5aadec (patch)
tree77aeb00016734667f8ff32a98ea8b4a6ed3ca31e /scripts/travis.sh
parent112be80ebdf96ef6a27420c1c6a10097388731a9 (diff)
downloadPeerTube-2284f202070aa2e49156cc52b3b1596a7d5aadec.tar.gz
PeerTube-2284f202070aa2e49156cc52b3b1596a7d5aadec.tar.zst
PeerTube-2284f202070aa2e49156cc52b3b1596a7d5aadec.zip
Add gitlab ci support
Diffstat (limited to 'scripts/travis.sh')
-rwxr-xr-xscripts/travis.sh41
1 files changed, 0 insertions, 41 deletions
diff --git a/scripts/travis.sh b/scripts/travis.sh
deleted file mode 100755
index 42e2329c6..000000000
--- a/scripts/travis.sh
+++ /dev/null
@@ -1,41 +0,0 @@
1#!/bin/sh
2
3set -eu
4
5if [ $# -eq 0 ]; then
6 echo "Need test suite argument."
7 exit -1
8fi
9
10killall -q peertube || true
11
12if [ "$1" = "misc" ]; then
13 npm run build -- --light-fr
14 mocha --timeout 5000 --exit --require ts-node/register --bail server/tests/client.ts \
15 server/tests/feeds/index.ts \
16 server/tests/misc-endpoints.ts \
17 server/tests/helpers/index.ts \
18 server/tests/plugins/index.ts
19elif [ "$1" = "cli" ]; then
20 npm run build:server
21 CC=gcc-4.9 CXX=g++-4.9 npm run setup:cli
22 mocha --timeout 5000 --exit --require ts-node/register --bail server/tests/cli/index.ts
23elif [ "$1" = "api-1" ]; then
24 npm run build:server
25 sh ./server/tests/api/travis-1.sh 2
26elif [ "$1" = "api-2" ]; then
27 npm run build:server
28 sh ./server/tests/api/travis-2.sh 2
29elif [ "$1" = "api-3" ]; then
30 npm run build:server
31 sh ./server/tests/api/travis-3.sh 2
32elif [ "$1" = "api-4" ]; then
33 npm run build:server
34 sh ./server/tests/api/travis-4.sh 2
35elif [ "$1" = "lint" ]; then
36 npm run tslint -- --project ./tsconfig.json -c ./tslint.json server.ts "server/**/*.ts" "shared/**/*.ts"
37
38 ( cd client
39 npm run lint
40 )
41fi