Try to fix travis tests
[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-*-64bit-static/{ffmpeg,ffprobe,ffserver} $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-fast
40   - env: TEST_SUITE=api-slow
41   - env: TEST_SUITE=cli
42   - env: TEST_SUITE=lint
43
44 script:
45   - travis_retry npm run travis -- "$TEST_SUITE"
46
47 after_failure:
48   - cat test1/logs/all-logs.log
49   - cat test2/logs/all-logs.log
50   - cat test3/logs/all-logs.log
51   - cat test4/logs/all-logs.log
52   - cat test5/logs/all-logs.log
53   - cat test6/logs/all-logs.log