]>
git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - scripts/travis.sh
6 echo "Need test suite argument."
10 if [ "$1" = "misc" ]; then
12 mocha
--timeout 5000 --exit --require ts
-node/register
/type-check --bail server
/tests
/client.ts server
/tests
/activitypub.ts \
13 server
/tests
/feeds
/feeds.ts
14 elif [ "$1" = "api" ]; then
16 mocha
--timeout 5000 --exit --require ts
-node/register
/type-check --bail server
/tests
/api
/index.ts
17 elif [ "$1" = "cli" ]; then
19 mocha
--timeout 5000 --exit --require ts
-node/register
/type-check --bail server
/tests
/cli
/index.ts
20 elif [ "$1" = "api-fast" ]; then
22 mocha
--timeout 5000 --exit --require ts
-node/register
/type-check --bail server
/tests
/api
/index
-fast.ts
23 elif [ "$1" = "api-slow" ]; then
25 mocha
--timeout 5000 --exit --require ts
-node/register
/type-check --bail server
/tests
/api
/index
-slow.ts
26 elif [ "$1" = "lint" ]; then
31 npm run tslint
-- --project .
/tsconfig.json
-c .
/tslint.json server.ts
"server/**/*.ts" "shared/**/*.ts"