Skip to content

Instantly share code, notes, and snippets.

@johnbeynon
Created March 3, 2014 11:04
Show Gist options
  • Save johnbeynon/9322825 to your computer and use it in GitHub Desktop.
Save johnbeynon/9322825 to your computer and use it in GitHub Desktop.
Travis YML
language: ruby
rvm:
- 2.0.0
cache: bundler
before_install:
- "psql -c 'create database <dbname>;' -U postgres"
- "psql -U postgres -q -d <dbname> -f db/structure.sql"
- "cp config/database.yml.travis config/database.yml"
env:
matrix:
- SECRET_TOKEN=somesecrettokenonlyusedfortestingpurposesontravis
global:
secure: <REDACTED>
deploy:
provider: heroku
strategy: git
api_key:
secure: <ENCRYPTED API KEY>
app: <APPNAME>
on:
repo: <REPO>
branch: staging
before_deploy:
- ./ci/heroku/staging_before_deploy.sh
after_deploy:
- ./ci/heroku/staging_after_deploy.sh
services:
- elasticsearch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment