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:
|
||||
- "echo 'gem: --no-ri --no-rdoc' > ~/.gemrc"
|
||||
- "echo `phantomjs -v`"
|
||||
addons:
|
||||
mariadb: '10.1'
|
||||
notifications:
|
||||
email:
|
||||
on_success: change
|
||||
|
|
@ -17,8 +19,9 @@ notifications:
|
|||
on_success: change
|
||||
on_failure: change
|
||||
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
|
||||
- mysql -u root -e 'create database osem_test;'
|
||||
- RAILS_ENV=test bundle exec rake db:migrate --trace
|
||||
script:
|
||||
- 'bundle exec rubocop -Dc .rubocop.yml'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue