diff options
author | Chocobozzz <me@florianbigard.com> | 2021-09-02 08:57:59 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-09-02 09:07:42 +0200 |
commit | 12d6b873cd4c5eb8c4fd298885e0c7fa6deb3756 (patch) | |
tree | 1abc21b305242e1d5bacefc99c2352b34396a5ab /scripts | |
parent | 6527eb0ccf823b5eac547c90066d3bd693094b2c (diff) | |
download | PeerTube-12d6b873cd4c5eb8c4fd298885e0c7fa6deb3756.tar.gz PeerTube-12d6b873cd4c5eb8c4fd298885e0c7fa6deb3756.tar.zst PeerTube-12d6b873cd4c5eb8c4fd298885e0c7fa6deb3756.zip |
Improve e2e workflow and add doc
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/e2e/browserstack.sh (renamed from scripts/e2e/index.sh) | 7 | ||||
-rwxr-xr-x | scripts/test.sh | 7 |
2 files changed, 3 insertions, 11 deletions
diff --git a/scripts/e2e/index.sh b/scripts/e2e/browserstack.sh index 49d57f1df..69a12d14c 100755 --- a/scripts/e2e/index.sh +++ b/scripts/e2e/browserstack.sh | |||
@@ -4,11 +4,6 @@ set -eu | |||
4 | 4 | ||
5 | npm run clean:server:test | 5 | npm run clean:server:test |
6 | 6 | ||
7 | ( | ||
8 | cd client | ||
9 | npm run webpack -- --config webpack/webpack.video-embed.js --mode development | ||
10 | ) | ||
11 | |||
12 | npm run concurrently -- -k -s first \ | 7 | npm run concurrently -- -k -s first \ |
13 | "cd client && npm run ng -- e2e --port 3333" \ | 8 | "cd client/e2e && ../node_modules/.bin/wdio run ./wdio.browserstack.conf.ts" \ |
14 | "NODE_ENV=test NODE_APP_INSTANCE=1 NODE_CONFIG='{ \"log\": { \"level\": \"warn\" }, \"signup\": { \"enabled\": false } }' node dist/server" | 9 | "NODE_ENV=test NODE_APP_INSTANCE=1 NODE_CONFIG='{ \"log\": { \"level\": \"warn\" }, \"signup\": { \"enabled\": false } }' node dist/server" |
diff --git a/scripts/test.sh b/scripts/test.sh index 01b259fe2..2dc79c6ce 100755 --- a/scripts/test.sh +++ b/scripts/test.sh | |||
@@ -2,11 +2,6 @@ | |||
2 | 2 | ||
3 | set -eu | 3 | set -eu |
4 | 4 | ||
5 | npm run build:server | ||
6 | npm run setup:cli | ||
7 | |||
8 | npm run ci -- lint | ||
9 | |||
10 | npm run ci -- client | 5 | npm run ci -- client |
11 | npm run ci -- cli-plugin | 6 | npm run ci -- cli-plugin |
12 | npm run ci -- api-1 | 7 | npm run ci -- api-1 |
@@ -14,3 +9,5 @@ npm run ci -- api-2 | |||
14 | npm run ci -- api-3 | 9 | npm run ci -- api-3 |
15 | npm run ci -- api-4 | 10 | npm run ci -- api-4 |
16 | npm run ci -- external-plugins | 11 | npm run ci -- external-plugins |
12 | |||
13 | npm run ci -- lint | ||