From 7aa66f4965e3fb4d4e7003525757a7a775bdddaa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Bauer?= Date: Wed, 30 Nov 2016 11:26:36 +0100 Subject: [PATCH] fix travis --- .travis.yml | 3 ++- config/database.yml.test | 13 +++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 config/database.yml.test diff --git a/.travis.yml b/.travis.yml index 316927f57..e2afb59a1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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: diff --git a/config/database.yml.test b/config/database.yml.test new file mode 100644 index 000000000..5d77943fe --- /dev/null +++ b/config/database.yml.test @@ -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 +