]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - .travis.yml
Translated using Weblate (French (France))
[github/Chocobozzz/PeerTube.git] / .travis.yml
1 language: node_js
2
3 node_js:
4 - "10"
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.6"
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.3-64bit-static.tar.xz"
33 - tar xf ffmpeg-release-4.0.3-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
49 script:
50 - NODE_PENDING_JOB_WAIT=2000 travis_retry npm run ci -- "$TEST_SUITE"
51
52 after_failure:
53 - cat test1/logs/peertube.log
54 - cat test2/logs/peertube.log
55 - cat test3/logs/peertube.log
56 - cat test4/logs/peertube.log
57 - cat test5/logs/peertube.log
58 - cat test6/logs/peertube.log