]>
Commit | Line | Data |
---|---|---|
2696b9af C |
1 | language: node_js |
2 | ||
3 | node_js: | |
da268a97 C |
4 | - "4" |
5 | - "6" | |
1eb6997e | 6 | |
d22629bd C |
7 | env: |
8 | - CXX=g++-4.8 | |
9 | ||
10 | addons: | |
11 | apt: | |
12 | sources: | |
13 | - ubuntu-toolchain-r-test | |
14 | packages: | |
15 | - g++-4.8 | |
da268a97 | 16 | postgresql: "9.4" |
d22629bd | 17 | |
6f1b0869 | 18 | sudo: false |
2696b9af C |
19 | |
20 | services: | |
da268a97 | 21 | - postgresql |
37836274 | 22 | |
5a1b27e7 | 23 | before_install: if [[ `npm -v` != 3* ]]; then npm i -g npm@3; fi |
2696b9af | 24 | |
2696b9af | 25 | before_script: |
803b0bd0 | 26 | - npm run build |
504b79cb BF |
27 | - wget --no-check-certificate "https://download.cpy.re/ffmpeg/ffmpeg-release-3.0.2-64bit-static.tar.xz" |
28 | - tar xf ffmpeg-release-3.0.2-64bit-static.tar.xz | |
c8d90fdb BF |
29 | - mkdir -p $HOME/bin |
30 | - cp ffmpeg-*-64bit-static/{ffmpeg,ffprobe,ffserver} $HOME/bin | |
31 | - export PATH=$HOME/bin:$PATH | |
2bd3f171 | 32 | - export NODE_TEST_IMAGE=true |
da268a97 C |
33 | - psql -c 'create database peertube_test1;' -U postgres |
34 | - psql -c 'create database peertube_test2;' -U postgres | |
35 | - psql -c 'create database peertube_test3;' -U postgres | |
36 | - psql -c 'create database peertube_test4;' -U postgres | |
37 | - psql -c 'create database peertube_test5;' -U postgres | |
38 | - psql -c 'create database peertube_test6;' -U postgres | |
a25970cc | 39 | - psql -c "create user peertube with password 'peertube';" -U postgres |
2696b9af C |
40 | |
41 | after_failure: | |
1eb6997e C |
42 | - cat test1/logs/all-logs.log |
43 | - cat test2/logs/all-logs.log | |
44 | - cat test3/logs/all-logs.log | |
e5993adc C |
45 | - cat test4/logs/all-logs.log |
46 | - cat test5/logs/all-logs.log | |
47 | - cat test6/logs/all-logs.log |