]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - .travis.yml
Refractor validators
[github/Chocobozzz/PeerTube.git] / .travis.yml
index 7b8935a323030c28c64b3f62f4aca07f586bef31..bb7e2c1302fa7d3c6415ff9511db7cf00c5c88a2 100644 (file)
@@ -22,7 +22,6 @@ services:
   - postgresql
 
 before_script:
-  - npm run build
   - wget --no-check-certificate "https://download.cpy.re/ffmpeg/ffmpeg-release-3.0.2-64bit-static.tar.xz"
   - tar xf ffmpeg-release-3.0.2-64bit-static.tar.xz
   - mkdir -p $HOME/bin
@@ -37,6 +36,17 @@ before_script:
   - psql -c 'create database peertube_test6;' -U postgres
   - psql -c "create user peertube with password 'peertube';" -U postgres
 
+matrix:
+  include:
+  - env: TEST_SUITE=client
+  - env: TEST_SUITE=api-fast
+  - env: TEST_SUITE=api-slow
+  - env: TEST_SUITE=cli
+  - env: TEST_SUITE=lint
+
+script:
+  - npm run travis -- "$TEST_SUITE"
+
 after_failure:
   - cat test1/logs/all-logs.log
   - cat test2/logs/all-logs.log