Hotfix for CI build broken by 297d9bb
This commit is contained in:
parent
121c06e4be
commit
f1c1a16c7f
3 changed files with 24 additions and 2 deletions
|
@ -49,9 +49,9 @@ before_install:
|
|||
- git fetch --unshallow
|
||||
- if [ "${DB}" = "mysql" ]; then mysql -u root -e "CREATE USER 'some_user'@'localhost' IDENTIFIED BY 'some_pass';"; fi
|
||||
- if [ "${DB}" = "mysql" ]; then mysql -u root -e "GRANT ALL PRIVILEGES ON *.* TO 'some_user'@'localhost';"; fi
|
||||
- if [ "${DB}" = "mysql" ]; then cp config/database.yml.test-mysql config/database.yml; fi
|
||||
- if [ "${DB}" = "mysql" ]; then cp contrib/travis-ci.org/database.yml.test-mysql config/database.yml; fi
|
||||
- if [ "${DB}" = "postgresql" ]; then psql -c 'create database zammad_test;' -U postgres; fi
|
||||
- if [ "${DB}" = "postgresql" ]; then cp config/database.yml.test-postgresql config/database.yml; fi
|
||||
- if [ "${DB}" = "postgresql" ]; then cp contrib/travis-ci.org/database.yml.test-postgresql config/database.yml; fi
|
||||
- export RAILS_ENV=test
|
||||
- export ZAMMAD_VERSION=$(git describe --tags | sed -e 's/-[a-z0-9]\{8,\}.*//g')
|
||||
install:
|
||||
|
|
11
contrib/travis-ci.org/database.yml.test-mysql
Normal file
11
contrib/travis-ci.org/database.yml.test-mysql
Normal file
|
@ -0,0 +1,11 @@
|
|||
# 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
|
11
contrib/travis-ci.org/database.yml.test-postgresql
Normal file
11
contrib/travis-ci.org/database.yml.test-postgresql
Normal file
|
@ -0,0 +1,11 @@
|
|||
# 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: postgresql
|
||||
database: zammad_test
|
||||
pool: 50
|
||||
timeout: 5000
|
||||
encoding: utf8
|
||||
username: postgres
|
||||
password:
|
Loading…
Reference in a new issue