language: ruby # Defaults to ruby, but travis-ci recommends making this explicit.
rvm:
  - 2.0
  - 2.1
  - 2.2
env: DB=postgres CI=1
bundler_args: --without development debug
before_install: 
  - sudo apt-get update -qq
  - sudo apt-get install -y libhiredis-dev
before_script:
  - cp config/database.yml.ci config/database.yml
  - cp config/app_config.yml.example config/app_config.yml
  - echo "foo" > mail_username.txt
  - echo "bar" > mail_password.txt
  - echo "secret-token" > secret_token
  - echo "secret-key-base" > secret_key_base
  - psql -c 'create database snpr_test;' -U postgres
  - bundle exec rake db:setup
services:
  - redis-server
addons:
  postgresql: "9.2"
script: "bundle exec rake test"

language: ruby # Defaults to ruby, but travis-ci recommends making this explicit.
rvm:
  - 2.2
env: DB=postgres CI=1
bundler_args: --without development debug
before_install: 
  - sudo apt-get update -qq
  - sudo apt-get install -y libhiredis-dev
before_script:
  - cp config/database.yml.ci config/database.yml
  - cp config/app_config.yml.example config/app_config.yml
  - echo "foo" > mail_username.txt
  - echo "bar" > mail_password.txt
  - echo "secret-token" > secret_token
  - echo "secret-key-base" > secret_key_base
  - psql -c 'create database snpr_test;' -U postgres
  - bundle exec rake db:setup
services:
  - redis-server
addons:
  postgresql: "9.2"
script: "bundle exec rake test"

Remove Ruby 2.0 and 2.1 builds from Travis config
Remove Ruby 2.0 and 2.1 builds from Travis config
