2015-10-30 20:08:46 +01:00
|
|
|
language: node_js
|
|
|
|
|
|
|
|
node_js:
|
2017-12-18 11:53:04 +01:00
|
|
|
- "8"
|
2015-11-11 14:57:28 +01:00
|
|
|
|
2018-07-25 20:57:56 +02:00
|
|
|
git:
|
|
|
|
depth: 1
|
|
|
|
|
2016-10-07 15:00:20 +02:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
- ubuntu-toolchain-r-test
|
|
|
|
packages:
|
2017-12-19 11:12:25 +01:00
|
|
|
- g++-4.9
|
2016-12-25 10:41:51 +01:00
|
|
|
postgresql: "9.4"
|
2016-10-07 15:00:20 +02:00
|
|
|
|
2018-10-08 17:47:19 +02:00
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- $HOME/.cache/yarn
|
|
|
|
- $HOME/fixtures
|
2017-04-26 22:49:47 +02:00
|
|
|
|
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
|
2018-01-25 19:13:08 +01:00
|
|
|
- redis-server
|
2016-09-21 22:57:10 +02:00
|
|
|
|
2017-12-19 11:30:55 +01:00
|
|
|
install:
|
|
|
|
- CC=gcc-4.9 CXX=g++-4.9 yarn install
|
|
|
|
|
2015-10-30 20:08:46 +01:00
|
|
|
before_script:
|
2018-08-10 17:49:12 +02:00
|
|
|
- wget --no-check-certificate "https://download.cpy.re/ffmpeg/ffmpeg-release-4.0.2-64bit-static.tar.xz"
|
|
|
|
- tar xf ffmpeg-release-4.0.2-64bit-static.tar.xz
|
2016-05-12 08:51:19 +02:00
|
|
|
- mkdir -p $HOME/bin
|
2018-08-10 17:56:07 +02:00
|
|
|
- cp ffmpeg-*/{ffmpeg,ffprobe} $HOME/bin
|
2016-05-12 08:51:19 +02:00
|
|
|
- export PATH=$HOME/bin:$PATH
|
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
|
|
|
|
2017-10-31 17:23:57 +01:00
|
|
|
matrix:
|
|
|
|
include:
|
2017-11-30 13:16:23 +01:00
|
|
|
- env: TEST_SUITE=misc
|
2018-08-22 16:15:35 +02:00
|
|
|
- env: TEST_SUITE=api-1
|
|
|
|
- env: TEST_SUITE=api-2
|
|
|
|
- env: TEST_SUITE=api-3
|
2018-10-16 10:55:29 +02:00
|
|
|
- env: TEST_SUITE=api-4
|
2017-10-31 17:23:57 +01:00
|
|
|
- env: TEST_SUITE=cli
|
|
|
|
- env: TEST_SUITE=lint
|
2018-08-31 17:19:21 +02:00
|
|
|
- env: TEST_SUITE=jest
|
2017-10-31 17:23:57 +01:00
|
|
|
|
|
|
|
script:
|
2019-01-08 11:26:41 +01:00
|
|
|
- NODE_PENDING_JOB_WAIT=1000 travis_retry npm run travis -- "$TEST_SUITE"
|
2017-10-31 17:23:57 +01:00
|
|
|
|
2015-10-30 20:08:46 +01:00
|
|
|
after_failure:
|
2019-01-08 11:26:41 +01:00
|
|
|
- cat test1/logs/peertube.log
|
|
|
|
- cat test2/logs/peertube.log
|
|
|
|
- cat test3/logs/peertube.log
|
|
|
|
- cat test4/logs/peertube.log
|
|
|
|
- cat test5/logs/peertube.log
|
|
|
|
- cat test6/logs/peertube.log
|