semaphore/.travis.yml

83 lines
3.1 KiB
YAML
Raw Normal View History

2018-04-10 02:40:36 +01:00
language: node_js
node_js:
2018-04-14 18:06:19 +01:00
- "9"
2018-04-10 02:44:37 +01:00
dist: trusty # needed for chrome headless
sudo: required # needed for chrome headless
addons:
2018-04-11 06:07:34 +01:00
firefox: latest
2018-04-10 02:44:37 +01:00
chrome: stable
2018-04-10 02:50:35 +01:00
postgresql: "10"
apt:
packages:
- postgresql-10
- postgresql-client-10
2018-04-11 00:45:51 +01: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 02:40:36 +01:00
services:
- redis-server
before_install:
- rvm install 2.5.0
2018-04-10 02:50:35 +01:00
- rvm use 2.5.0
2018-04-11 04:01:46 +01: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 02:50:35 +01:00
- ruby --version
2018-04-10 03:07:28 +01:00
- node --version
2018-04-10 02:50:35 +01:00
- postgres --version
- redis-server --version
2018-04-11 03:49:37 +01:00
- ffmpeg -version
2018-04-14 18:06:19 +01:00
- npm install -g greenkeeper-lockfile@1
2018-04-10 03:07:28 +01:00
before_script:
2018-04-10 02:40:36 +01:00
- npm run lint
2018-04-14 18:06:19 +01:00
- greenkeeper-lockfile-update
after_script:
- greenkeeper-lockfile-upload
script: travis_retry npm run $COMMAND
2018-04-10 02:44:37 +01:00
env:
2018-04-10 02:50:35 +01:00
global:
- PGPORT=5433
2018-04-14 18:06:19 +01:00
- secure: "iR11lD+OAyTJdNoK67esDOrd34HKQboJo0DrVL4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ZQHYb722wE6rN0YvJ6zGriWomDuV1smdyu4teo4lY2oVUUUGflyz2HWxnjVbqWizw4k69TNIcEEQ8j8YgdXMUxNMUOJoCu0c3Lnd8J1BeU/7LX87c54/oCMjEivnsENGIC/EUgAoXDi3L0y7HzHgaDs112p5zjspJsSSON/T4E2uyyb2RpjBY4Ghl43a/RDAlv1gUFtvbanphg3PEGMfG7B2gxk9Z/v5J9pUP/NtsspmT2MvTHZXtH/44XPEU="
matrix:
include:
- env: BROWSER=chrome:headless COMMAND=test-browser
2018-04-12 06:23:50 +01:00
- env: COMMAND=deploy-dev-travis
# disable firefox until it's passing
# - env: BROWSER=firefox:headless COMMAND=test-browser
allow_failures:
2018-04-12 06:23:17 +01:00
- env: BROWSER=firefox:headless COMMAND=test-browser
2018-04-10 02:40:36 +01:00
branches:
only:
- master
- /^greenkeeper/.*$/
cache:
directories:
- $HOME/.npm
2018-04-11 04:56:42 +01:00
- $HOME/.rvm
2018-04-11 06:07:34 +01:00
- $HOME/.bundle
2018-04-11 07:22:24 +01:00
- $HOME/.yarn-cache