Continuous Integration with Rails, Github and TravisCI

After 25 failing builds I finally managed it! My app works just fine with continuous integration provided by Travis CI.

Here my travis config using postgresql for test environment:

language: ruby

sudo: false

before_install:
  - gem install bundler
  - "rm ${BUNDLE_GEMFILE}.lock"

cache: bundler

rvm:
 - 2.3.1

env:
 - DB=pgsql

services:
 - postgresql

test:
  adapter: postgresql
  database: ycms_test #(replace this with your database name)

# uncomment and edit the following line if your project needs to run something other than `rake`:
# script: 
# - bundle exec rspec spec

before_script:
 - cp config/database.yml.travis config/database.yml
 - psql -c 'create database ycms_test;' -U postgres # replace it here aswell
 - bundle update
 - bundle exec rake db:test:prepare

Happy testing!