mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-16 15:20:13 +01:00
CI test on both MySQL and SQLite
This commit is contained in:
parent
0f336c4e2f
commit
4405015384
2 changed files with 5 additions and 3 deletions
|
|
@ -6,14 +6,16 @@ rvm:
|
|||
- 2.1
|
||||
- 2.2
|
||||
|
||||
env:
|
||||
- DATABASE_URL=mysql2://localhost/tracks_test
|
||||
- DATABASE_URL=sqlite3:db/test.sqlite3
|
||||
|
||||
bundler_args: --without development --jobs=3 --retry=3
|
||||
|
||||
before_script:
|
||||
- "mysql -e 'create database tracks_test;'"
|
||||
- "export DISPLAY=:99.0"
|
||||
- "sh -e /etc/init.d/xvfb start"
|
||||
- "cp config/site.yml.tmpl config/site.yml"
|
||||
- "cp config/database.yml.tmpl config/database.yml"
|
||||
|
||||
script: "bin/rake ci"
|
||||
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ task :ci do |t|
|
|||
require 'simplecov'
|
||||
SimpleCov.start 'rails'
|
||||
|
||||
[:environment, 'test:all', 'cucumber'].each do |t|
|
||||
[:environment, 'db:create', 'test:all', 'cucumber'].each do |t|
|
||||
Rake::Task[t].invoke
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue