Permalink
Browse files

Add .travis.yml configuration

Configures a containerized trusty environment and provisions the
PostgreSQL instance ahead of running the specs.

Lints with rubocop after a successful run.
  • Loading branch information...
patrickod committed Feb 21, 2017
1 parent 71e6615 commit 9484e34b32db05bbd67bf17bf440bb6aed0c5373
Showing with 31 additions and 0 deletions.
  1. +27 −0 .travis.yml
  2. +4 −0 config/database.yml.travis
@@ -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
@@ -0,0 +1,4 @@
test:
adapter: postgresql
database: travis_ci_test

0 comments on commit 9484e34

Please sign in to comment.