diff options
author | Chocobozzz <me@florianbigard.com> | 2018-05-16 19:59:21 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-05-17 10:55:50 +0200 |
commit | 74af5a8361f4ccb460001706ce249d50c747f361 (patch) | |
tree | 4e077f14a6c604799b15fdbea98a2d8c8bdc7576 /scripts | |
parent | 6200d8d91710b03a72a27e35cbe6eed1e6cc8c62 (diff) | |
download | PeerTube-74af5a8361f4ccb460001706ce249d50c747f361.tar.gz PeerTube-74af5a8361f4ccb460001706ce249d50c747f361.tar.zst PeerTube-74af5a8361f4ccb460001706ce249d50c747f361.zip |
Client E2E tests first step
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/e2e.sh | 11 | ||||
-rwxr-xr-x | scripts/watch/client.sh | 2 |
2 files changed, 12 insertions, 1 deletions
diff --git a/scripts/e2e.sh b/scripts/e2e.sh new file mode 100755 index 000000000..b1e9245c1 --- /dev/null +++ b/scripts/e2e.sh | |||
@@ -0,0 +1,11 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | set -eu | ||
4 | |||
5 | #npm run build:server | ||
6 | npm run clean:server:test | ||
7 | |||
8 | concurrently -k -s first \ | ||
9 | "cd client && npm run ng -- e2e" \ | ||
10 | "NODE_ENV=test NODE_APP_INSTANCE=1 npm start" | ||
11 | |||
diff --git a/scripts/watch/client.sh b/scripts/watch/client.sh index 7dcce5861..f3799d2e9 100755 --- a/scripts/watch/client.sh +++ b/scripts/watch/client.sh | |||
@@ -4,4 +4,4 @@ set -eu | |||
4 | 4 | ||
5 | cd client | 5 | cd client |
6 | 6 | ||
7 | npm run ng -- serve --hmr --host 0.0.0.0 --disable-host-check --port 3000 | 7 | npm run ng -- serve --hmr --configuration hmr --host 0.0.0.0 --disable-host-check --port 3000 |