.travis.yml
language: ruby
rvm:
- "2.4.6"
- "2.5.5"
- "2.6.3"
env:
- "RAILS_VERSION=4.2.11.1"
- "RAILS_VERSION=5.0.7.2"
- "RAILS_VERSION=5.1.7"
- "RAILS_VERSION=5.2.3"
script:
- DOSSIER_DB=sqlite3 bundle exec rspec
- DOSSIER_DB=mysql2 bundle exec rspec
- DOSSIER_DB=postgresql bundle exec rspec
before_script:
- mysql -e 'create database dossier_test;'
- psql -c 'create database dossier_test;' -U postgres
- cp spec/fixtures/db/mysql2.yml.travis spec/fixtures/db/mysql2.yml
- cp spec/fixtures/db/sqlite3.yml.travis spec/fixtures/db/sqlite3.yml
- cp spec/fixtures/db/postgresql.yml.travis spec/fixtures/db/postgresql.yml
sudo: false # upgrade travis ci infrastructure http://bit.ly/1J6D4W9