]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - .travis.yml
fix pg_restore command for post-migrations
[github/Chocobozzz/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-3.0.2-64bit-static.tar.xz"
30 - tar xf ffmpeg-release-3.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 - export NODE_TEST_IMAGE=true
35 - psql -c "create user peertube with password 'peertube';" -U postgres
36
37 matrix:
38 include:
39 - env: TEST_SUITE=misc
40 - env: TEST_SUITE=api-fast
41 - env: TEST_SUITE=api-slow
42 - env: TEST_SUITE=cli
43 - env: TEST_SUITE=lint
44
45 script:
46 - travis_retry npm run travis -- "$TEST_SUITE"
47
48 after_failure:
49 - cat test1/logs/all-logs.log
50 - cat test2/logs/all-logs.log
51 - cat test3/logs/all-logs.log
52 - cat test4/logs/all-logs.log
53 - cat test5/logs/all-logs.log
54 - cat test6/logs/all-logs.log