In Travis, run tests on MariaDB
This commit is contained in:
parent
393deefcf9
commit
1eaf810548
2 changed files with 9 additions and 1 deletions
|
|
@ -7,6 +7,8 @@ rvm:
|
||||||
before_install:
|
before_install:
|
||||||
- "echo 'gem: --no-ri --no-rdoc' > ~/.gemrc"
|
- "echo 'gem: --no-ri --no-rdoc' > ~/.gemrc"
|
||||||
- "echo `phantomjs -v`"
|
- "echo `phantomjs -v`"
|
||||||
|
addons:
|
||||||
|
mariadb: '10.1'
|
||||||
notifications:
|
notifications:
|
||||||
email:
|
email:
|
||||||
on_success: change
|
on_success: change
|
||||||
|
|
@ -17,8 +19,9 @@ notifications:
|
||||||
on_success: change
|
on_success: change
|
||||||
on_failure: change
|
on_failure: change
|
||||||
before_script:
|
before_script:
|
||||||
- cp config/database.yml.example config/database.yml
|
- cp config/database.yml.travis config/database.yml
|
||||||
- cp config/secrets.yml.example config/secrets.yml
|
- cp config/secrets.yml.example config/secrets.yml
|
||||||
|
- mysql -u root -e 'create database osem_test;'
|
||||||
- RAILS_ENV=test bundle exec rake db:migrate --trace
|
- RAILS_ENV=test bundle exec rake db:migrate --trace
|
||||||
script:
|
script:
|
||||||
- 'bundle exec rubocop -Dc .rubocop.yml'
|
- 'bundle exec rubocop -Dc .rubocop.yml'
|
||||||
|
|
|
||||||
5
config/database.yml.travis
Normal file
5
config/database.yml.travis
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
test:
|
||||||
|
adapter: mysql2
|
||||||
|
database: osem_test
|
||||||
|
username: root
|
||||||
|
encoding: utf8
|
||||||
Loading…
Add table
Add a link
Reference in a new issue