2015-10-30 15:08:46 -04:00
|
|
|
language: node_js
|
|
|
|
|
|
|
|
node_js:
|
2017-12-18 05:53:04 -05:00
|
|
|
- "8"
|
2015-11-11 08:57:28 -05:00
|
|
|
|
2018-07-25 14:57:56 -04:00
|
|
|
git:
|
|
|
|
depth: 1
|
|
|
|
|
2016-10-07 09:00:20 -04:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
- ubuntu-toolchain-r-test
|
|
|
|
packages:
|
2017-12-19 05:12:25 -05:00
|
|
|
- g++-4.9
|
2016-12-25 04:41:51 -05:00
|
|
|
postgresql: "9.4"
|
2016-10-07 09:00:20 -04:00
|
|
|
|
2017-04-26 16:49:47 -04:00
|
|
|
cache: yarn
|
|
|
|
|
2016-05-11 17:00:44 -04:00
|
|
|
sudo: false
|
2015-10-30 15:08:46 -04:00
|
|
|
|
|
|
|
services:
|
2016-12-25 04:41:51 -05:00
|
|
|
- postgresql
|
2018-01-25 13:13:08 -05:00
|
|
|
- redis-server
|
2016-09-21 16:57:10 -04:00
|
|
|
|
2017-12-19 05:30:55 -05:00
|
|
|
install:
|
|
|
|
- CC=gcc-4.9 CXX=g++-4.9 yarn install
|
|
|
|
|
2015-10-30 15:08:46 -04:00
|
|
|
before_script:
|
2016-05-12 09:56:33 -04: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 02:51:19 -04:00
|
|
|
- mkdir -p $HOME/bin
|
|
|
|
- cp ffmpeg-*-64bit-static/{ffmpeg,ffprobe,ffserver} $HOME/bin
|
|
|
|
- export PATH=$HOME/bin:$PATH
|
2016-07-20 11:53:39 -04:00
|
|
|
- export NODE_TEST_IMAGE=true
|
2016-12-25 04:48:00 -05:00
|
|
|
- psql -c "create user peertube with password 'peertube';" -U postgres
|
2015-10-30 15:08:46 -04:00
|
|
|
|
2017-10-31 12:23:57 -04:00
|
|
|
matrix:
|
|
|
|
include:
|
2017-11-30 07:16:23 -05:00
|
|
|
- env: TEST_SUITE=misc
|
2017-10-31 12:50:28 -04:00
|
|
|
- env: TEST_SUITE=api-fast
|
|
|
|
- env: TEST_SUITE=api-slow
|
2017-10-31 12:23:57 -04:00
|
|
|
- env: TEST_SUITE=cli
|
|
|
|
- env: TEST_SUITE=lint
|
|
|
|
|
|
|
|
script:
|
2018-06-21 08:34:59 -04:00
|
|
|
- travis_retry npm run travis -- "$TEST_SUITE"
|
2017-10-31 12:23:57 -04:00
|
|
|
|
2015-10-30 15:08:46 -04:00
|
|
|
after_failure:
|
2015-11-11 08:57:28 -05:00
|
|
|
- cat test1/logs/all-logs.log
|
|
|
|
- cat test2/logs/all-logs.log
|
|
|
|
- cat test3/logs/all-logs.log
|
2015-12-06 15:37:46 -05:00
|
|
|
- cat test4/logs/all-logs.log
|
|
|
|
- cat test5/logs/all-logs.log
|
|
|
|
- cat test6/logs/all-logs.log
|