]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - .travis.yml
Try to reduce docker image size
[github/Chocobozzz/PeerTube.git] / .travis.yml
CommitLineData
2696b9af
C
1language: node_js
2
3node_js:
ce33ee01 4 - "8"
1eb6997e 5
5f7021c3
J
6git:
7 depth: 1
8
d22629bd
C
9addons:
10 apt:
11 sources:
12 - ubuntu-toolchain-r-test
13 packages:
3ae6376a 14 - g++-4.9
da268a97 15 postgresql: "9.4"
d22629bd 16
bf57f073
C
17cache: yarn
18
6f1b0869 19sudo: false
2696b9af
C
20
21services:
da268a97 22 - postgresql
90dea7dc 23 - redis-server
37836274 24
393b5ab8
C
25install:
26 - CC=gcc-4.9 CXX=g++-4.9 yarn install
27
2696b9af 28before_script:
504b79cb
BF
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
c8d90fdb
BF
31 - mkdir -p $HOME/bin
32 - cp ffmpeg-*-64bit-static/{ffmpeg,ffprobe,ffserver} $HOME/bin
33 - export PATH=$HOME/bin:$PATH
2bd3f171 34 - export NODE_TEST_IMAGE=true
a25970cc 35 - psql -c "create user peertube with password 'peertube';" -U postgres
2696b9af 36
18530063
C
37matrix:
38 include:
98ec8b8e 39 - env: TEST_SUITE=misc
15f25480
C
40 - env: TEST_SUITE=api-fast
41 - env: TEST_SUITE=api-slow
18530063
C
42 - env: TEST_SUITE=cli
43 - env: TEST_SUITE=lint
44
45script:
365b546c 46 - travis_retry npm run travis -- "$TEST_SUITE"
18530063 47
2696b9af 48after_failure:
1eb6997e
C
49 - cat test1/logs/all-logs.log
50 - cat test2/logs/all-logs.log
51 - cat test3/logs/all-logs.log
e5993adc
C
52 - cat test4/logs/all-logs.log
53 - cat test5/logs/all-logs.log
54 - cat test6/logs/all-logs.log