diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/ci.sh | 4 | ||||
-rwxr-xr-x | scripts/test.sh | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/scripts/ci.sh b/scripts/ci.sh index 1819f73dd..c023ddf98 100755 --- a/scripts/ci.sh +++ b/scripts/ci.sh | |||
@@ -11,7 +11,7 @@ killall -q peertube || true | |||
11 | 11 | ||
12 | if [ "$1" = "misc" ]; then | 12 | if [ "$1" = "misc" ]; then |
13 | npm run build -- --light-fr | 13 | npm run build -- --light-fr |
14 | mocha --timeout 5000 --exit --require ts-node/register --bail server/tests/client.ts \ | 14 | mocha --timeout 5000 --exit --require ts-node/register --require tsconfig-paths/register --bail server/tests/client.ts \ |
15 | server/tests/feeds/index.ts \ | 15 | server/tests/feeds/index.ts \ |
16 | server/tests/misc-endpoints.ts \ | 16 | server/tests/misc-endpoints.ts \ |
17 | server/tests/helpers/index.ts \ | 17 | server/tests/helpers/index.ts \ |
@@ -19,7 +19,7 @@ if [ "$1" = "misc" ]; then | |||
19 | elif [ "$1" = "cli" ]; then | 19 | elif [ "$1" = "cli" ]; then |
20 | npm run build:server | 20 | npm run build:server |
21 | CC=gcc-4.9 CXX=g++-4.9 npm run setup:cli | 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 | 22 | mocha --timeout 5000 --exit --require ts-node/register --require tsconfig-paths/register --bail server/tests/cli/index.ts |
23 | elif [ "$1" = "api-1" ]; then | 23 | elif [ "$1" = "api-1" ]; then |
24 | npm run build:server | 24 | npm run build:server |
25 | sh ./server/tests/api/ci-1.sh 2 | 25 | sh ./server/tests/api/ci-1.sh 2 |
diff --git a/scripts/test.sh b/scripts/test.sh index 1b6b29b66..8961ddd7e 100755 --- a/scripts/test.sh +++ b/scripts/test.sh | |||
@@ -7,4 +7,4 @@ npm run setup:cli | |||
7 | 7 | ||
8 | npm run ci -- lint | 8 | npm run ci -- lint |
9 | 9 | ||
10 | mocha --exit --require ts-node/register/type-check --bail server/tests/index.ts | 10 | mocha --exit --require ts-node/register/type-check --require tsconfig-paths/register --bail server/tests/index.ts |