X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=.travis.yml;h=bb7e2c1302fa7d3c6415ff9511db7cf00c5c88a2;hb=a2431b7dcbc72c05101dcdbe631ff84a823aeb51;hp=19fcd53c6ce42c66fd1117e26f746503e1cc874e;hpb=da268a9758ac4af03c8ae5894d6d13fd097ad504;p=github%2FChocobozzz%2FPeerTube.git diff --git a/.travis.yml b/.travis.yml index 19fcd53c6..bb7e2c130 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,7 +1,6 @@ language: node_js node_js: - - "4" - "6" env: @@ -15,15 +14,14 @@ addons: - g++-4.8 postgresql: "9.4" +cache: yarn + sudo: false services: - postgresql -before_install: if [[ `npm -v` != 3* ]]; then npm i -g npm@3; fi - 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 @@ -36,7 +34,18 @@ before_script: - psql -c 'create database peertube_test4;' -U postgres - psql -c 'create database peertube_test5;' -U postgres - psql -c 'create database peertube_test6;' -U postgres - - psql -c 'create user peertube with password \'peertube\';' -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