fix: (travis) different databases for producer and consumer

This commit is contained in:
Rucha Mahabal 2019-10-09 15:30:11 +05:30
parent 71d4380a09
commit df605c7558
5 changed files with 16 additions and 6 deletions

View file

@ -59,14 +59,24 @@ install:
- mysql -u root -e "SET GLOBAL character_set_server = 'utf8mb4'"
- mysql -u root -e "SET GLOBAL collation_server = 'utf8mb4_unicode_ci'"
- mysql -u root -e "CREATE DATABASE test_frappe"
- mysql -u root -e "CREATE DATABASE test_frappe_consumer"
- mysql -u root -e "CREATE USER 'test_frappe'@'localhost' IDENTIFIED BY 'test_frappe'"
- mysql -u root -e "GRANT ALL PRIVILEGES ON \`test_frappe\`.* TO 'test_frappe'@'localhost'"
- mysql -u root -e "UPDATE mysql.user SET Password=PASSWORD('travis') WHERE User='root'"
- mysql -u root -e "FLUSH PRIVILEGES"
- psql -c "CREATE DATABASE test_frappe" -U postgres
- psql -c "CREATE DATABASE test_frappe_consumer" -U postgres
- psql -c "CREATE USER test_frappe WITH PASSWORD 'test_frappe'" -U postgres
- mysql -u root -e "CREATE DATABASE test_frappe_producer"
- mysql -u root -e "CREATE USER 'test_frappe'@'localhost' IDENTIFIED BY 'test_frappe'"
- mysql -u root -e "GRANT ALL PRIVILEGES ON \`test_frappe\`.* TO 'test_frappe'@'localhost'"
- mysql -u root -e "UPDATE mysql.user SET Password=PASSWORD('travis') WHERE User='root'"
- mysql -u root -e "FLUSH PRIVILEGES"
- psql -c "CREATE DATABASE test_frappe_producer" -U postgres
- psql -c "CREATE USER test_frappe WITH PASSWORD 'test_frappe'" -U postgres
- wget -O /tmp/wkhtmltox.tar.xz https://github.com/frappe/wkhtmltopdf/raw/master/wkhtmltox-0.12.3_linux-generic-amd64.tar.xz

View file

@ -1,6 +1,6 @@
{
"db_host": "localhost",
"db_name": "test_frappe",
"db_name": "test_frappe_consumer",
"db_password": "test_frappe",
"db_type": "mariadb",
"auto_email_id": "test@example.com",

View file

@ -1,6 +1,6 @@
{
"db_host": "localhost",
"db_name": "test_frappe",
"db_name": "test_frappe_consumer",
"db_password": "test_frappe",
"db_type": "postgres",
"auto_email_id": "test@example.com",

View file

@ -1,6 +1,6 @@
{
"db_host": "localhost",
"db_name": "test_frappe",
"db_name": "test_frappe_producer",
"db_password": "test_frappe",
"db_type": "mariadb",
"auto_email_id": "test@example.com",

View file

@ -1,6 +1,6 @@
{
"db_host": "localhost",
"db_name": "test_frappe",
"db_name": "test_frappe_producer",
"db_password": "test_frappe",
"db_type": "postgres",
"auto_email_id": "test@example.com",