diff --git a/.travis.yml b/.travis.yml index 3bc70d3..0b77a95 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,6 +3,11 @@ language: - ruby +rvm: + - 2.3 + - 2.4 + - 2.5 + - 2.6 cache: - bundler @@ -14,8 +19,12 @@ sudo: required # required with chrome addon addons: chrome: stable +services: + - mysql + before_install: - - cp config/database.example.yml config/database.yml + - mysql -e 'CREATE DATABASE chexpire_test;' + - cp config/database.travis.yml config/database.yml - cp config/secrets.example.yml config/secrets.yml # Test configuration loaded from chexpire.defaults.yml, diff --git a/config/database.travis.yml b/config/database.travis.yml new file mode 100644 index 0000000..b638b45 --- /dev/null +++ b/config/database.travis.yml @@ -0,0 +1,5 @@ +test: + adapter: mysql2 + database: chexpire_test + username: travis + encoding: utf8