]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Split slow and fast api tests for travis
authorChocobozzz <florian.bigard@gmail.com>
Tue, 31 Oct 2017 16:50:28 +0000 (17:50 +0100)
committerChocobozzz <florian.bigard@gmail.com>
Tue, 31 Oct 2017 16:50:28 +0000 (17:50 +0100)
.travis.yml
scripts/travis.sh
server/tests/api/index-fast.ts [new file with mode: 0644]
server/tests/api/index-slow.ts [new file with mode: 0644]
server/tests/api/index.ts

index 1ae32a1f9bb2612603e1f60c74a4244a1c8e4f41..bb7e2c1302fa7d3c6415ff9511db7cf00c5c88a2 100644 (file)
@@ -39,7 +39,8 @@ before_script:
 matrix:
   include:
   - env: TEST_SUITE=client
-  - env: TEST_SUITE=api
+  - env: TEST_SUITE=api-fast
+  - env: TEST_SUITE=api-slow
   - env: TEST_SUITE=cli
   - env: TEST_SUITE=lint
 
index f6cdda463bd29be0da1527b49af20b2dc0af4228..e0a59806af88057ceaa09afa99339a450f8361a5 100755 (executable)
@@ -14,6 +14,12 @@ elif [ "$1" = "api" ]; then
 elif [ "$1" = "cli" ]; then
     npm run build:server
     mocha --exit --require ts-node/register --bail server/tests/cli/index.ts
+elif [ "$1" = "api-fast" ]; then
+    npm run build:server
+    mocha --exit --require ts-node/register --bail server/tests/api/index-fast.ts
+elif [ "$1" = "api-slow" ]; then
+    npm run build:server
+    mocha --exit --require ts-node/register --bail server/tests/api/index-slow.ts
 elif [ "$1" = "lint" ]; then
     cd client || exit -1
     npm run lint || exit -1
diff --git a/server/tests/api/index-fast.ts b/server/tests/api/index-fast.ts
new file mode 100644 (file)
index 0000000..f13d815
--- /dev/null
@@ -0,0 +1,13 @@
+// Order of the tests we want to execute
+import './config'
+import './check-params'
+import './friends-basic'
+import './users'
+import './single-pod'
+import './video-abuse'
+import './video-blacklist'
+import './video-blacklist-management'
+import './video-description'
+import './video-privacy'
+import './services'
+import './request-schedulers'
diff --git a/server/tests/api/index-slow.ts b/server/tests/api/index-slow.ts
new file mode 100644 (file)
index 0000000..e3b50e5
--- /dev/null
@@ -0,0 +1,4 @@
+// Order of the tests we want to execute
+import './multiple-pods'
+import './friends-advanced'
+import './video-transcoder'
index 371f1bc439eab2c1628f3554b64d1cf657392800..258502d26067d2777feb34507fd80ee9c6096c87 100644 (file)
@@ -1,16 +1,3 @@
 // Order of the tests we want to execute
-import './config'
-import './check-params'
-import './friends-basic'
-import './users'
-import './single-pod'
-import './video-abuse'
-import './video-blacklist'
-import './video-blacklist-management'
-import './video-description'
-import './video-privacy'
-import './multiple-pods'
-import './services'
-import './request-schedulers'
-import './friends-advanced'
-import './video-transcoder'
+import './index-fast'
+import './index-slow'