]>
Commit | Line | Data |
---|---|---|
1 | language: node_js | |
2 | ||
3 | node_js: | |
4 | - "8" | |
5 | ||
6 | addons: | |
7 | apt: | |
8 | sources: | |
9 | - ubuntu-toolchain-r-test | |
10 | packages: | |
11 | - g++-4.9 | |
12 | postgresql: "9.4" | |
13 | ||
14 | cache: yarn | |
15 | ||
16 | sudo: false | |
17 | ||
18 | services: | |
19 | - postgresql | |
20 | - redis-server | |
21 | ||
22 | install: | |
23 | - CC=gcc-4.9 CXX=g++-4.9 yarn install | |
24 | ||
25 | before_script: | |
26 | - wget --no-check-certificate "https://download.cpy.re/ffmpeg/ffmpeg-release-3.0.2-64bit-static.tar.xz" | |
27 | - tar xf ffmpeg-release-3.0.2-64bit-static.tar.xz | |
28 | - mkdir -p $HOME/bin | |
29 | - cp ffmpeg-*-64bit-static/{ffmpeg,ffprobe,ffserver} $HOME/bin | |
30 | - export PATH=$HOME/bin:$PATH | |
31 | - export NODE_TEST_IMAGE=true | |
32 | - psql -c 'create database peertube_test1;' -U postgres | |
33 | - psql -c 'create database peertube_test2;' -U postgres | |
34 | - psql -c 'create database peertube_test3;' -U postgres | |
35 | - psql -c 'create database peertube_test4;' -U postgres | |
36 | - psql -c 'create database peertube_test5;' -U postgres | |
37 | - psql -c 'create database peertube_test6;' -U postgres | |
38 | - psql -c "create user peertube with password 'peertube';" -U postgres | |
39 | ||
40 | matrix: | |
41 | include: | |
42 | - env: TEST_SUITE=misc | |
43 | - env: TEST_SUITE=api-fast | |
44 | - env: TEST_SUITE=api-slow | |
45 | - env: TEST_SUITE=cli | |
46 | - env: TEST_SUITE=lint | |
47 | ||
48 | script: | |
49 | - npm run travis -- "$TEST_SUITE" | |
50 | ||
51 | after_failure: | |
52 | - cat test1/logs/all-logs.log | |
53 | - cat test2/logs/all-logs.log | |
54 | - cat test3/logs/all-logs.log | |
55 | - cat test4/logs/all-logs.log | |
56 | - cat test5/logs/all-logs.log | |
57 | - cat test6/logs/all-logs.log |