mirror of https://github.com/Evolix/chexpire.git
Update travis configuration for database setup
This commit is contained in:
parent
66c3039e37
commit
5782d96260
11
.travis.yml
11
.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,
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
test:
|
||||
adapter: mysql2
|
||||
database: chexpire_test
|
||||
username: travis
|
||||
encoding: utf8
|
Loading…
Reference in New Issue