Commit 8ceb9408 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

[Travis] try run both db

parent cfaa1545d3de
env:
- DB=mysql
- DB=sqlite
before_install: sudo apt-get install libicu-dev -y
branches:
only:
......@@ -5,7 +8,7 @@ branches:
rvm:
- 1.9.2
before_script:
- "cp config/database.yml.sqlite config/database.yml"
- "cp config/database.yml.$DB config/database.yml"
- "cp config/gitlab.yml.example config/gitlab.yml"
- "bundle exec rake db:create RAILS_ENV=test"
- "bundle exec rake db:migrate RAILS_ENV=test"
......
development:
adapter: mysql2
encoding: utf8
reconnect: false
database: gitlabhq_development
pool: 5
username: root
password: "secure password"
# socket: /tmp/mysql.sock
# Warning: The database defined as "test" will be erased and
# re-generated from your development database when you run "rake".
# Do not set this db to the same as development or production.
test:
adapter: mysql2
encoding: utf8
reconnect: false
database: gitlabhq_test
pool: 5
username: root
password:
# socket: /tmp/mysql.sock
production:
adapter: mysql2
encoding: utf8
reconnect: false
database: gitlabhq_production
pool: 5
username: root
password: "secure password"
# socket: /tmp/mysql.sock
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment