2018-05-16 19:59:21 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
set -eu
|
|
|
|
|
|
|
|
npm run clean:server:test
|
|
|
|
|
2021-09-03 10:27:04 +02: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 16:50:33 +02:00
|
|
|
npm run concurrently -- -k -s first \
|
2021-08-30 16:24:25 +02:00
|
|
|
"cd client/e2e && ../node_modules/.bin/wdio run ./wdio.local.conf.ts" \
|
2021-09-03 10:27:04 +02: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"
|