language: ruby
rvm:
- 2.5.3
services:
  - mysql
branches:
  only:
  - master
before_install:
- sudo apt-get update
- gem update bundler
- sudo apt-get install libgeos-dev libproj-dev
- mysql -e "create database IF NOT EXISTS transam_spatial_testing;" -uroot
- openssl aes-256-cbc -K $encrypted_684e5c653cef_key -iv $encrypted_684e5c653cef_iv -in spec/dummy/config/application.yml.enc -out spec/dummy/config/application.yml -d
addons:
  code_climate:
    repo_token: ce7c157104b0cf1f2babf66d9cc10bbe598607781e8eeb1ba1593fec1d1fc5c1
before_script:
- bundle update transam_core
- cp spec/dummy/config/database.travis.yml spec/dummy/config/database.yml
script:
- bundle exec rake app:transam_spatial:prepare_rspec
- bundle exec rspec

language: ruby
rvm:
- 2.5.3
services:
  - mysql
branches:
  only:
  - master
  - develop
  - /2.\d*.\d*/
before_install:
- sudo apt-get update
- gem update bundler
- sudo apt-get install libgeos-dev libproj-dev
- mysql -e "create database IF NOT EXISTS transam_spatial_testing;" -uroot
- openssl aes-256-cbc -K $encrypted_684e5c653cef_key -iv $encrypted_684e5c653cef_iv -in spec/dummy/config/application.yml.enc -out spec/dummy/config/application.yml -d
addons:
  code_climate:
    repo_token: ce7c157104b0cf1f2babf66d9cc10bbe598607781e8eeb1ba1593fec1d1fc5c1
before_script:
- bundle update transam_core
- cp spec/dummy/config/database.travis.yml spec/dummy/config/database.yml
script:
- bundle exec rake app:transam_spatial:prepare_rspec
- bundle exec rspec

Build on develop and 2.X.X branches
Build on develop and 2.X.X branches
