]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - .travis.yml
Begin advanced search
[github/Chocobozzz/PeerTube.git] / .travis.yml
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 user peertube with password 'peertube';" -U postgres
33
34 matrix:
35 include:
36 - env: TEST_SUITE=misc
37 - env: TEST_SUITE=api-fast
38 - env: TEST_SUITE=api-slow
39 - env: TEST_SUITE=cli
40 - env: TEST_SUITE=lint
41
42 script:
43 - travis_retry npm run travis -- "$TEST_SUITE"
44
45 after_failure:
46 - cat test1/logs/all-logs.log
47 - cat test2/logs/all-logs.log
48 - cat test3/logs/all-logs.log
49 - cat test4/logs/all-logs.log
50 - cat test5/logs/all-logs.log
51 - cat test6/logs/all-logs.log