]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - .travis.yml
Refractor validators
[github/Chocobozzz/PeerTube.git] / .travis.yml
index 5c6302bc930529bd30ddc73759f831a7f4d431a6..bb7e2c1302fa7d3c6415ff9511db7cf00c5c88a2 100644 (file)
@@ -14,13 +14,14 @@ addons:
       - g++-4.8
   postgresql: "9.4"
 
+cache: yarn
+
 sudo: false
 
 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
@@ -35,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