2018-04-10 03:40:36 +02:00
|
|
|
language: node_js
|
|
|
|
node_js:
|
|
|
|
- "8"
|
2018-04-10 03:44:37 +02:00
|
|
|
dist: trusty # needed for chrome headless
|
|
|
|
sudo: required # needed for chrome headless
|
|
|
|
addons:
|
2018-04-11 07:07:34 +02:00
|
|
|
firefox: latest
|
2018-04-10 03:44:37 +02:00
|
|
|
chrome: stable
|
2018-04-10 03:50:35 +02:00
|
|
|
postgresql: "10"
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- postgresql-10
|
|
|
|
- postgresql-client-10
|
2018-04-11 01:45:51 +02:00
|
|
|
- postgresql-contrib-10
|
|
|
|
# the following are mastodon dependencies
|
|
|
|
- imagemagick
|
|
|
|
- libpq-dev
|
|
|
|
- libxml2-dev
|
|
|
|
- libxslt1-dev
|
|
|
|
- file
|
|
|
|
- g++
|
|
|
|
- libprotobuf-dev
|
|
|
|
- protobuf-compiler
|
|
|
|
- pkg-config nodejs
|
|
|
|
- gcc
|
|
|
|
- autoconf
|
|
|
|
- bison
|
|
|
|
- build-essential
|
|
|
|
- libssl-dev
|
|
|
|
- libyaml-dev
|
|
|
|
- libreadline6-dev
|
|
|
|
- zlib1g-dev
|
|
|
|
- libncurses5-dev
|
|
|
|
- libffi-dev
|
|
|
|
- libgdbm3
|
|
|
|
- libgdbm-dev
|
|
|
|
- redis-tools
|
|
|
|
- libidn11-dev
|
|
|
|
- libicu-dev
|
2018-04-10 03:40:36 +02:00
|
|
|
services:
|
|
|
|
- redis-server
|
|
|
|
before_install:
|
|
|
|
- rvm install 2.5.0
|
2018-04-10 03:50:35 +02:00
|
|
|
- rvm use 2.5.0
|
2018-04-11 05:01:46 +02:00
|
|
|
- sudo -E add-apt-repository -y ppa:mc3man/trusty-media
|
|
|
|
- sudo -E apt-get update
|
|
|
|
- sudo -E apt-get install -y ffmpeg gstreamer0.10-ffmpeg
|
2018-04-10 03:50:35 +02:00
|
|
|
- ruby --version
|
2018-04-10 04:07:28 +02:00
|
|
|
- node --version
|
2018-04-10 03:50:35 +02:00
|
|
|
- postgres --version
|
|
|
|
- redis-server --version
|
2018-04-11 04:49:37 +02:00
|
|
|
- ffmpeg -version
|
2018-04-10 04:07:28 +02:00
|
|
|
before_script:
|
2018-04-10 03:40:36 +02:00
|
|
|
- npm run lint
|
2018-04-10 03:44:37 +02:00
|
|
|
script: npm run test-browser
|
|
|
|
env:
|
2018-04-10 03:50:35 +02:00
|
|
|
global:
|
|
|
|
- PGPORT=5433
|
2018-04-11 03:39:56 +02:00
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
- env: BROWSER=chrome:headless
|
|
|
|
- env: BROWSER=firefox:headless
|
|
|
|
allow_failures:
|
|
|
|
- env: BROWSER=firefox:headless
|
2018-04-10 03:40:36 +02:00
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- master
|
|
|
|
- /^greenkeeper/.*$/
|
|
|
|
cache:
|
|
|
|
directories:
|
2018-04-11 03:39:56 +02:00
|
|
|
- $HOME/.npm
|
2018-04-11 05:56:42 +02:00
|
|
|
- $HOME/.rvm
|
2018-04-11 07:07:34 +02:00
|
|
|
- $HOME/.bundle
|
2018-04-11 08:22:24 +02:00
|
|
|
- $HOME/.yarn-cache
|