X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=.travis.yml;h=bb7e2c1302fa7d3c6415ff9511db7cf00c5c88a2;hb=fcaf1e0aa84213a1b1f1b1a44a3276eae35ebe70;hp=e6a92d883134ef4b0d9d577c96a0464b982fbe45;hpb=2bd3f171270aff9717a55f2b89757fe966911af3;p=github%2FChocobozzz%2FPeerTube.git diff --git a/.travis.yml b/.travis.yml index e6a92d883..bb7e2c130 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,8 +1,7 @@ language: node_js node_js: - - "4.4" - - "6.2" + - "6" env: - CXX=g++-4.8 @@ -13,21 +12,40 @@ addons: - ubuntu-toolchain-r-test packages: - g++-4.8 + postgresql: "9.4" + +cache: yarn sudo: false services: - - mongodb + - postgresql before_script: - - npm install electron-prebuilt -g - - 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 - cp ffmpeg-*-64bit-static/{ffmpeg,ffprobe,ffserver} $HOME/bin - export PATH=$HOME/bin:$PATH - export NODE_TEST_IMAGE=true + - psql -c 'create database peertube_test1;' -U postgres + - psql -c 'create database peertube_test2;' -U postgres + - psql -c 'create database peertube_test3;' -U postgres + - 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 + +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