mirror of
https://github.com/Evolix/chexpire.git
synced 2024-05-05 18:25:09 +02:00
configure MySQL for travis
This commit is contained in:
parent
83a824b64f
commit
d3d6230347
|
@ -23,7 +23,8 @@ services:
|
||||||
- mysql
|
- mysql
|
||||||
|
|
||||||
before_install:
|
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
|
- cp config/secrets.example.yml config/secrets.yml
|
||||||
|
|
||||||
# Test configuration loaded from chexpire.defaults.yml,
|
# Test configuration loaded from chexpire.defaults.yml,
|
||||||
|
|
5
config/database.travis.yml
Normal file
5
config/database.travis.yml
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
test:
|
||||||
|
adapter: mysql2
|
||||||
|
database: chexpire_test
|
||||||
|
username: travis
|
||||||
|
encoding: utf8
|
Loading…
Reference in a new issue