Merge branch 'release/v1.0.0' into develop
[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:
18   directories:
19     - $HOME/.cache/yarn
20     - $HOME/fixtures
21
22 sudo: false
23
24 services:
25   - postgresql
26   - redis-server
27
28 install:
29   - CC=gcc-4.9 CXX=g++-4.9 yarn install
30
31 before_script:
32   - wget --no-check-certificate "https://download.cpy.re/ffmpeg/ffmpeg-release-4.0.2-64bit-static.tar.xz"
33   - tar xf ffmpeg-release-4.0.2-64bit-static.tar.xz
34   - mkdir -p $HOME/bin
35   - cp ffmpeg-*/{ffmpeg,ffprobe} $HOME/bin
36   - export PATH=$HOME/bin:$PATH
37   - psql -c "create user peertube with password 'peertube';" -U postgres
38
39 matrix:
40   include:
41   - env: TEST_SUITE=misc
42   - env: TEST_SUITE=api-1
43   - env: TEST_SUITE=api-2
44   - env: TEST_SUITE=api-3
45   - env: TEST_SUITE=api-4
46   - env: TEST_SUITE=cli
47   - env: TEST_SUITE=lint
48   - env: TEST_SUITE=jest
49
50 script:
51   - travis_retry npm run travis -- "$TEST_SUITE"
52
53 after_failure:
54   - cat test1/logs/all-logs.log
55   - cat test2/logs/all-logs.log
56   - cat test3/logs/all-logs.log
57   - cat test4/logs/all-logs.log
58   - cat test5/logs/all-logs.log
59   - cat test6/logs/all-logs.log