language: ruby rvm: - 2.3 - 2.4 - 2.5 - 2.6 services: - mysql - postgresql addons: postgresql: "9.5" apt: packages: - postgresql-9.5-postgis-2.3 env: - DATABASE=mysql - DATABASE=postgresql - DATABASE=postgis gemfile: - gemfiles/rails50.gemfile - gemfiles/rails51.gemfile - gemfiles/rails52.gemfile before_script: - psql -U postgres -c "create extension postgis" - cd spec/dummy - bundle exec rake db:create db:migrate db:seed RAILS_ENV=test - cd ../.. script: bundle exec rspec