pinafore/.travis.yml
2018-04-09 19:07:28 -07:00

38 lines
695 B
YAML

language: node_js
node_js:
- "8"
dist: trusty # needed for chrome headless
sudo: required # needed for chrome headless
addons:
chrome: stable
postgresql: "10"
apt:
packages:
- postgresql-10
- postgresql-client-10
services:
- redis-server
before_install:
- rvm install 2.5.0
- rvm use 2.5.0
- ruby --version
- node --version
- postgres --version
- redis-server --version
- psql -c "CREATE USER nolan CREATEDB;"
before_script:
- npm run lint
script: npm run test-browser
env:
global:
- PGPORT=5433
matrix:
- BROWSER=chrome:headless
- BROWSER=firefox:headless
branches:
only:
- master
- /^greenkeeper/.*$/
cache:
directories:
- $HOME/.npm