From 18530063feb3326369bf3871248b04de0ce4d2af Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 31 Oct 2017 17:23:57 +0100 Subject: Try matrix to speed up travis builds --- .travis.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to '.travis.yml') diff --git a/.travis.yml b/.travis.yml index 7b8935a32..1b611b402 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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,16 @@ 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=build_then_client + - env: TEST_SUITE=api + - 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 -- cgit v1.2.3