]>
git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - scripts/travis.sh
390500ed451549e64ee7e469ea7d7e2f98e9ba0f
6 echo "Need test suite argument."
10 killall
-q peertube
|| true
12 if [ "$1" = "misc" ]; then
14 mocha
--timeout 5000 --exit --require ts
-node/register
/type-check --bail server
/tests
/client.ts server
/tests
/activitypub.ts \
15 server
/tests
/feeds
/feeds.ts
16 elif [ "$1" = "api" ]; then
18 mocha
--timeout 5000 --exit --require ts
-node/register
/type-check --bail server
/tests
/api
/index.ts
19 elif [ "$1" = "cli" ]; then
21 mocha
--timeout 5000 --exit --require ts
-node/register
/type-check --bail server
/tests
/cli
/index.ts
22 elif [ "$1" = "api-fast" ]; then
24 mocha
--timeout 5000 --exit --require ts
-node/register
/type-check --bail server
/tests
/api
/index
-fast.ts
25 elif [ "$1" = "api-slow" ]; then
27 mocha
--timeout 5000 --exit --require ts
-node/register
/type-check --bail server
/tests
/api
/index
-slow.ts
28 elif [ "$1" = "lint" ]; then
33 npm run tslint
-- --project .
/tsconfig.json
-c .
/tslint.json server.ts
"server/**/*.ts" "shared/**/*.ts"