fix travis

This commit is contained in:
André Bauer 2016-11-30 11:26:36 +01:00
parent 2bc25e322e
commit 7aa66f4965
2 changed files with 15 additions and 1 deletions

View file

@ -19,7 +19,8 @@ before_install:
- mysql -u root -e "CREATE USER 'some_user'@'localhost' IDENTIFIED BY 'some_pass';"
- mysql -u root -e "GRANT ALL PRIVILEGES ON *.* TO 'some_user'@'localhost';"
- export RAILS_ENV=development
- cp config/database.yml.dist config/database.yml
- export EMAILHELPER_MAILBOX_1='unittestemailhelper01@znuny.com:somepass'
- cp config/database.yml.test config/database.yml
install:
- bundle install --without postgres
script:

13
config/database.yml.test Normal file
View file

@ -0,0 +1,13 @@
# 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
database: zammad_test
pool: 50
timeout: 5000
encoding: utf8
username: some_user
password: some_pass
host: 127.0.0.1