2015-10-30 20:08:46 +01:00
|
|
|
language: node_js
|
|
|
|
|
|
|
|
node_js:
|
2016-12-25 10:41:51 +01:00
|
|
|
- "6"
|
2015-11-11 14:57:28 +01:00
|
|
|
|
2016-10-07 15:00:20 +02:00
|
|
|
env:
|
|
|
|
- CXX=g++-4.8
|
|
|
|
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
- ubuntu-toolchain-r-test
|
|
|
|
packages:
|
|
|
|
- g++-4.8
|
2016-12-25 10:41:51 +01:00
|
|
|
postgresql: "9.4"
|
2016-10-07 15:00:20 +02:00
|
|
|
|
2017-04-26 22:49:47 +02:00
|
|
|
cache: yarn
|
|
|
|
|
2016-05-11 23:00:44 +02:00
|
|
|
sudo: false
|
2015-10-30 20:08:46 +01:00
|
|
|
|
|
|
|
services:
|
2016-12-25 10:41:51 +01:00
|
|
|
- postgresql
|
2016-09-21 22:57:10 +02:00
|
|
|
|
2015-10-30 20:08:46 +01:00
|
|
|
before_script:
|
2016-04-29 16:52:32 +02:00
|
|
|
- npm run build
|
2016-05-12 15:56:33 +02:00
|
|
|
- wget --no-check-certificate "https://download.cpy.re/ffmpeg/ffmpeg-release-3.0.2-64bit-static.tar.xz"
|
|
|
|
- tar xf ffmpeg-release-3.0.2-64bit-static.tar.xz
|
2016-05-12 08:51:19 +02:00
|
|
|
- mkdir -p $HOME/bin
|
|
|
|
- cp ffmpeg-*-64bit-static/{ffmpeg,ffprobe,ffserver} $HOME/bin
|
|
|
|
- export PATH=$HOME/bin:$PATH
|
2016-07-20 17:53:39 +02:00
|
|
|
- export NODE_TEST_IMAGE=true
|
2016-12-25 10:41:51 +01:00
|
|
|
- psql -c 'create database peertube_test1;' -U postgres
|
|
|
|
- psql -c 'create database peertube_test2;' -U postgres
|
|
|
|
- psql -c 'create database peertube_test3;' -U postgres
|
|
|
|
- psql -c 'create database peertube_test4;' -U postgres
|
|
|
|
- psql -c 'create database peertube_test5;' -U postgres
|
|
|
|
- psql -c 'create database peertube_test6;' -U postgres
|
2016-12-25 10:48:00 +01:00
|
|
|
- psql -c "create user peertube with password 'peertube';" -U postgres
|
2015-10-30 20:08:46 +01:00
|
|
|
|
|
|
|
after_failure:
|
2015-11-11 14:57:28 +01:00
|
|
|
- cat test1/logs/all-logs.log
|
|
|
|
- cat test2/logs/all-logs.log
|
|
|
|
- cat test3/logs/all-logs.log
|
2015-12-06 21:37:46 +01:00
|
|
|
- cat test4/logs/all-logs.log
|
|
|
|
- cat test5/logs/all-logs.log
|
|
|
|
- cat test6/logs/all-logs.log
|