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