diff options
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/benchmark.ts | 6 | ||||
-rwxr-xr-x | scripts/ci.sh | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/scripts/benchmark.ts b/scripts/benchmark.ts index 83b932909..5dcf9b01b 100644 --- a/scripts/benchmark.ts +++ b/scripts/benchmark.ts | |||
@@ -1,10 +1,10 @@ | |||
1 | import { registerTSPaths } from '../server/helpers/register-ts-paths' | ||
2 | registerTSPaths() | ||
3 | |||
1 | import * as autocannon from 'autocannon' | 4 | import * as autocannon from 'autocannon' |
2 | import { writeJson } from 'fs-extra' | 5 | import { writeJson } from 'fs-extra' |
3 | import { createSingleServer, killallServers, PeerTubeServer, setAccessTokensToServers } from '@shared/extra-utils' | 6 | import { createSingleServer, killallServers, PeerTubeServer, setAccessTokensToServers } from '@shared/extra-utils' |
4 | import { Video, VideoPrivacy } from '@shared/models' | 7 | import { Video, VideoPrivacy } from '@shared/models' |
5 | import { registerTSPaths } from '../server/helpers/register-ts-paths' | ||
6 | |||
7 | registerTSPaths() | ||
8 | 8 | ||
9 | let server: PeerTubeServer | 9 | let server: PeerTubeServer |
10 | let video: Video | 10 | let video: Video |
diff --git a/scripts/ci.sh b/scripts/ci.sh index 7862888b8..71b1be53b 100755 --- a/scripts/ci.sh +++ b/scripts/ci.sh | |||
@@ -77,7 +77,7 @@ elif [ "$1" = "api-2" ]; then | |||
77 | serverFiles=$(findTestFiles ./dist/server/tests/api/server) | 77 | serverFiles=$(findTestFiles ./dist/server/tests/api/server) |
78 | usersFiles=$(findTestFiles ./dist/server/tests/api/users) | 78 | usersFiles=$(findTestFiles ./dist/server/tests/api/users) |
79 | 79 | ||
80 | MOCHA_PARALLEL=true runTest "$1" 3 $serverFiles $usersFiles $liveFiles | 80 | MOCHA_PARALLEL=true runTest "$1" 3 $liveFiles $serverFiles $usersFiles |
81 | elif [ "$1" = "api-3" ]; then | 81 | elif [ "$1" = "api-3" ]; then |
82 | npm run build:server | 82 | npm run build:server |
83 | 83 | ||