Update travis configuration for database setup

This commit is contained in:
Jérémy Lecour 2019-08-25 12:05:07 +02:00
parent 66c3039e37
commit 5782d96260
2 changed files with 15 additions and 1 deletions

View File

@ -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,

View File

@ -0,0 +1,5 @@
test:
adapter: mysql2
database: chexpire_test
username: travis
encoding: utf8