]>
Commit | Line | Data |
---|---|---|
2696b9af C |
1 | language: node_js |
2 | ||
3 | node_js: | |
297e911b | 4 | - "10" |
1eb6997e | 5 | |
5f7021c3 J |
6 | git: |
7 | depth: 1 | |
8 | ||
d22629bd C |
9 | addons: |
10 | apt: | |
11 | sources: | |
12 | - ubuntu-toolchain-r-test | |
13 | packages: | |
3ae6376a | 14 | - g++-4.9 |
7c3b7976 | 15 | postgresql: "9.6" |
d22629bd | 16 | |
c1c86c15 C |
17 | cache: |
18 | directories: | |
19 | - $HOME/.cache/yarn | |
20 | - $HOME/fixtures | |
bf57f073 | 21 | |
6f1b0869 | 22 | sudo: false |
2696b9af C |
23 | |
24 | services: | |
da268a97 | 25 | - postgresql |
90dea7dc | 26 | - redis-server |
37836274 | 27 | |
393b5ab8 C |
28 | install: |
29 | - CC=gcc-4.9 CXX=g++-4.9 yarn install | |
30 | ||
2696b9af | 31 | before_script: |
80b8ad2a C |
32 | - wget --no-check-certificate "https://download.cpy.re/ffmpeg/ffmpeg-release-4.0.3-64bit-static.tar.xz" |
33 | - tar xf ffmpeg-release-4.0.3-64bit-static.tar.xz | |
c8d90fdb | 34 | - mkdir -p $HOME/bin |
5c617be4 | 35 | - cp ffmpeg-*/{ffmpeg,ffprobe} $HOME/bin |
c8d90fdb | 36 | - export PATH=$HOME/bin:$PATH |
a25970cc | 37 | - psql -c "create user peertube with password 'peertube';" -U postgres |
2696b9af | 38 | |
18530063 C |
39 | matrix: |
40 | include: | |
98ec8b8e | 41 | - env: TEST_SUITE=misc |
1297eb5d C |
42 | - env: TEST_SUITE=api-1 |
43 | - env: TEST_SUITE=api-2 | |
44 | - env: TEST_SUITE=api-3 | |
26370ce4 | 45 | - env: TEST_SUITE=api-4 |
18530063 C |
46 | - env: TEST_SUITE=cli |
47 | - env: TEST_SUITE=lint | |
48 | ||
49 | script: | |
2284f202 | 50 | - NODE_PENDING_JOB_WAIT=2000 travis_retry npm run ci -- "$TEST_SUITE" |
18530063 | 51 | |
2696b9af | 52 | after_failure: |
2f1548fd C |
53 | - cat test1/logs/peertube.log |
54 | - cat test2/logs/peertube.log | |
55 | - cat test3/logs/peertube.log | |
56 | - cat test4/logs/peertube.log | |
57 | - cat test5/logs/peertube.log | |
58 | - cat test6/logs/peertube.log |