diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/setup/cli.sh | 16 | ||||
-rwxr-xr-x | scripts/travis.sh | 3 |
2 files changed, 18 insertions, 1 deletions
diff --git a/scripts/setup/cli.sh b/scripts/setup/cli.sh new file mode 100755 index 000000000..94ca3c441 --- /dev/null +++ b/scripts/setup/cli.sh | |||
@@ -0,0 +1,16 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | set -eu | ||
4 | |||
5 | NOCLIENT=1 yarn install --pure-lockfile | ||
6 | |||
7 | rm -rf ./dist/server/tools/ | ||
8 | |||
9 | ( | ||
10 | cd ./server/tools | ||
11 | yarn install --pure-lockfile | ||
12 | ) | ||
13 | |||
14 | npm run tsc -- --build ./server/tools/tsconfig.json | ||
15 | |||
16 | cp -r "./server/tools/node_modules" "./dist/server/tools" | ||
diff --git a/scripts/travis.sh b/scripts/travis.sh index c38bd2cab..454ac5e14 100755 --- a/scripts/travis.sh +++ b/scripts/travis.sh | |||
@@ -28,7 +28,8 @@ elif [ "$1" = "api-3" ]; then | |||
28 | npm run build:server | 28 | npm run build:server |
29 | sh ./server/tests/api/travis-3.sh 2 | 29 | sh ./server/tests/api/travis-3.sh 2 |
30 | elif [ "$1" = "api-4" ]; then | 30 | elif [ "$1" = "api-4" ]; then |
31 | npm run build:server | 31 | npm run setup:cli |
32 | npm run build-server | ||
32 | sh ./server/tests/api/travis-4.sh 2 | 33 | sh ./server/tests/api/travis-4.sh 2 |
33 | elif [ "$1" = "lint" ]; then | 34 | elif [ "$1" = "lint" ]; then |
34 | npm run tslint -- --project ./tsconfig.json -c ./tslint.json server.ts "server/**/*.ts" "shared/**/*.ts" | 35 | npm run tslint -- --project ./tsconfig.json -c ./tslint.json server.ts "server/**/*.ts" "shared/**/*.ts" |