PeerTube/scripts/e2e/local.sh

18 lines
581 B
Bash
Raw Normal View History

2018-05-16 12:59:21 -05:00
#!/bin/sh
set -eu
npm run clean:server:test
2021-09-03 03:27:04 -05:00
config="{"
config+=" \"rates_limit\": { \"api\": { \"max\": 5000 }, \"login\": { \"max\": 5000 } }"
config+=", \"log\": { \"level\": \"warn\" }"
config+=", \"signup\": { \"enabled\": false }"
config+=", \"transcoding\": { \"enabled\": false }"
config+="}"
2018-06-07 09:50:33 -05:00
npm run concurrently -- -k -s first \
2021-08-30 09:24:25 -05:00
"cd client/e2e && ../node_modules/.bin/wdio run ./wdio.local.conf.ts" \
2021-09-03 03:27:04 -05:00
"NODE_ENV=test NODE_CONFIG='$config' NODE_APP_INSTANCE=1 node dist/server" \
"NODE_ENV=test NODE_CONFIG='$config' NODE_APP_INSTANCE=2 node dist/server"