Skip to content
This repository has been archived by the owner on Feb 28, 2020. It is now read-only.

Commit

Permalink
Merge pull request #80 from noisebridge/patrickod/travis-ci
Browse files Browse the repository at this point in the history
Initial .travis.yml configuration
  • Loading branch information
patrickod committed Feb 21, 2017
2 parents 71e6615 + 9484e34 commit d8e6f94
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Use containerized trusty
dist: trusty
sudo: false

# Configure ruby versions
language: ruby
rvm:
- 2.3.2
- 2.4.0

# Use latest PostgreSQL
addons:
postgresql: "9.6"
services:
- postgresql
before_script:
- psql -c 'create database travis_ci_test;' -U postgres
- cp config/database.yml.travis config/database.yml

# Get rid of encrypted .env which it can't read
before_install:
- mv .env .env.encrypted

# Lint codebase after successful spec run
# after_script:
# - bundle exec rubocop

4 changes: 4 additions & 0 deletions config/database.yml.travis
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
test:
adapter: postgresql
database: travis_ci_test

0 comments on commit d8e6f94

Please sign in to comment.