Browse Source

Update travis configuration for database setup

pull/106/head
Jérémy Lecour 1 year ago
parent
commit
5782d96260
2 changed files with 15 additions and 1 deletions
  1. +10
    -1
      .travis.yml
  2. +5
    -0
      config/database.travis.yml

+ 10
- 1
.travis.yml 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,


+ 5
- 0
config/database.travis.yml View File

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

Loading…
Cancel
Save