Refactor: Separated "Other Videos" section into a dedicated component/service (#969)
[oweals/peertube.git] / .travis.yml
1 language: node_js
2
3 node_js:
4   - "8"
5
6 git:
7   depth: 1
8
9 addons:
10   apt:
11     sources:
12       - ubuntu-toolchain-r-test
13     packages:
14       - g++-4.9
15   postgresql: "9.4"
16
17 cache: yarn
18
19 sudo: false
20
21 services:
22   - postgresql
23   - redis-server
24
25 install:
26   - CC=gcc-4.9 CXX=g++-4.9 yarn install
27
28 before_script:
29   - wget --no-check-certificate "https://download.cpy.re/ffmpeg/ffmpeg-release-4.0.2-64bit-static.tar.xz"
30   - tar xf ffmpeg-release-4.0.2-64bit-static.tar.xz
31   - mkdir -p $HOME/bin
32   - cp ffmpeg-*/{ffmpeg,ffprobe} $HOME/bin
33   - export PATH=$HOME/bin:$PATH
34   - psql -c "create user peertube with password 'peertube';" -U postgres
35
36 matrix:
37   include:
38   - env: TEST_SUITE=misc
39   - env: TEST_SUITE=api-1
40   - env: TEST_SUITE=api-2
41   - env: TEST_SUITE=api-3
42   - env: TEST_SUITE=cli
43   - env: TEST_SUITE=lint
44   - env: TEST_SUITE=jest
45
46 script:
47   - travis_retry npm run travis -- "$TEST_SUITE"
48
49 after_failure:
50   - cat test1/logs/all-logs.log
51   - cat test2/logs/all-logs.log
52   - cat test3/logs/all-logs.log
53   - cat test4/logs/all-logs.log
54   - cat test5/logs/all-logs.log
55   - cat test6/logs/all-logs.log