]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - scripts/e2e/local.sh
Fix NSFW filter and add tests
[github/Chocobozzz/PeerTube.git] / scripts / e2e / local.sh
CommitLineData
74af5a83
C
1#!/bin/sh
2
3set -eu
4
74af5a83
C
5npm run clean:server:test
6
6d210220
C
7config="{"
8config+=" \"rates_limit\": { \"api\": { \"max\": 5000 }, \"login\": { \"max\": 5000 } }"
9config+=", \"log\": { \"level\": \"warn\" }"
10config+=", \"signup\": { \"enabled\": false }"
11config+=", \"transcoding\": { \"enabled\": false }"
12config+="}"
13
6cca7360 14npm run concurrently -- -k -s first \
3419e0e1 15 "cd client/e2e && ../node_modules/.bin/wdio run ./wdio.local.conf.ts" \
6d210220
C
16 "NODE_ENV=test NODE_CONFIG='$config' NODE_APP_INSTANCE=1 node dist/server" \
17 "NODE_ENV=test NODE_CONFIG='$config' NODE_APP_INSTANCE=2 node dist/server"