Skip to content

Commit

Permalink
fix: (travis) different databases for producer and consumer
Browse files Browse the repository at this point in the history
  • Loading branch information
ruchamahabal committed Oct 10, 2019
1 parent 71d4380 commit df605c7
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 6 deletions.
14 changes: 12 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .travis/consumer_db/mariadb.json
Original file line number Diff line number Diff line change
@@ -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": "[email protected]",
Expand Down
2 changes: 1 addition & 1 deletion .travis/consumer_db/postgres.json
Original file line number Diff line number Diff line change
@@ -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": "[email protected]",
Expand Down
2 changes: 1 addition & 1 deletion .travis/producer_db/mariadb.json
Original file line number Diff line number Diff line change
@@ -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": "[email protected]",
Expand Down
2 changes: 1 addition & 1 deletion .travis/producer_db/postgres.json
Original file line number Diff line number Diff line change
@@ -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": "[email protected]",
Expand Down

0 comments on commit df605c7

Please sign in to comment.