.travis.yml
language: node_js
node_js:
- "0.12"
cache:
directories:
- node_modules
sudo: false
addons:
postgresql: "9.4"
apt:
packages:
- libcairo2-dev
- libjpeg8-dev
- libpango1.0-dev
- libgif-dev
- build-essential
- g++
before_script:
- psql -c 'create database continua11y_test;' -U postgres
- psql -c 'create database continua11y;' -U postgres
script: npm test --coverage
after_script:
- codeclimate-test-reporter < coverage/lcov.info
- npm install -g pa11y-crawl
- pa11y-crawl --run "npm start" --ci http://localhost:3000
notifications:
email: false
env:
global:
- GITHUB_TOKEN=FAKE_TEST_TOKEN
- CF_USERNAME=18f-acq_deployer
- secure: "lgJhmljgx5JWK8/WZNkyF5tkSg9AMWhjiglHp/TQaCymVDED68ZsiHD1PxXpY2364uluTYxhb5yBsjwNV1Ss0V7MGd5WIOxY6kDCC6Kt+p3iEs7uBxkUWcsutW76n1sRziAEKIW0KOseikPN4WO1RGuuR2XPRNIb9pNXDhqeQ/s="
before_deploy:
- export PATH=$HOME:$PATH
- travis_retry curl -L -o $HOME/cf.tgz "https://cli.run.pivotal.io/stable?release=linux64-binary&version=6.15.0"
- tar xzvf $HOME/cf.tgz -C $HOME
- mkdir -p ${HOME}/Godeps/_workspace
- export GOPATH=${HOME}/Godeps/_workspace
- go get github.com/concourse/autopilot
- cf install-plugin -f $GOPATH/bin/autopilot
deploy:
- provider: script
script: "./scripts/deploy.sh production"
skip_cleanup: true
on:
branch: release
node: '0.12'