mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
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'
|
||||
|
|
|
|||
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