diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-10-31 17:50:28 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-10-31 17:50:28 +0100 |
commit | 15f25480dddca4ad2af10f1bb96b4c8858cd4335 (patch) | |
tree | 0244e7e8e7687bd0d2443ad06c754a0ba1b9ff7c /scripts/travis.sh | |
parent | c8dc45d7337020902e3c177580a1060b9fa3297f (diff) | |
download | PeerTube-15f25480dddca4ad2af10f1bb96b4c8858cd4335.tar.gz PeerTube-15f25480dddca4ad2af10f1bb96b4c8858cd4335.tar.zst PeerTube-15f25480dddca4ad2af10f1bb96b4c8858cd4335.zip |
Split slow and fast api tests for travis
Diffstat (limited to 'scripts/travis.sh')
-rwxr-xr-x | scripts/travis.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/travis.sh b/scripts/travis.sh index f6cdda463..e0a59806a 100755 --- a/scripts/travis.sh +++ b/scripts/travis.sh | |||
@@ -14,6 +14,12 @@ elif [ "$1" = "api" ]; then | |||
14 | elif [ "$1" = "cli" ]; then | 14 | elif [ "$1" = "cli" ]; then |
15 | npm run build:server | 15 | npm run build:server |
16 | mocha --exit --require ts-node/register --bail server/tests/cli/index.ts | 16 | mocha --exit --require ts-node/register --bail server/tests/cli/index.ts |
17 | elif [ "$1" = "api-fast" ]; then | ||
18 | npm run build:server | ||
19 | mocha --exit --require ts-node/register --bail server/tests/api/index-fast.ts | ||
20 | elif [ "$1" = "api-slow" ]; then | ||
21 | npm run build:server | ||
22 | mocha --exit --require ts-node/register --bail server/tests/api/index-slow.ts | ||
17 | elif [ "$1" = "lint" ]; then | 23 | elif [ "$1" = "lint" ]; then |
18 | cd client || exit -1 | 24 | cd client || exit -1 |
19 | npm run lint || exit -1 | 25 | npm run lint || exit -1 |