fix(travis): Use database specific site_config.json files

This commit is contained in:
Aditya Hase 2019-07-23 17:44:52 +05:30
parent 3edbf3ad34
commit 26b4e4b1c7
3 changed files with 35 additions and 5 deletions

View file

@ -18,16 +18,16 @@ matrix:
include:
- name: "Python 3.6 MariaDB"
python: 3.6
env: DB=MariaDB
env: DB=mariadb
- name: "Python 3.6 PostgreSQL"
python: 3.6
env: DB=PostgreSQL
env: DB=postgres
- name: "Cypress"
python: 3.6
env: DB=MariaDB
env: DB=mariadb
- name: "Python 2.7 MariaDB"
python: 2.7
env: DB=MariaDB
env: DB=mariadb
install:
- cd ~
@ -38,7 +38,9 @@ install:
- pip install -e ./bench
- bench init frappe-bench --skip-assets --python $(which python) --frappe-path $TRAVIS_BUILD_DIR
- cp -r $TRAVIS_BUILD_DIR/test_sites/test_site ~/frappe-bench/sites/
- mkdir ~/frappe-bench/sites/test_site
- cp $TRAVIS_BUILD_DIR/test_sites/$DB.json ~/frappe-bench/sites/test_site/site_config.json
- mysql -u root -e "SET GLOBAL character_set_server = 'utf8mb4'"
- mysql -u root -e "SET GLOBAL collation_server = 'utf8mb4_unicode_ci'"

14
test_sites/mariadb.json Normal file
View file

@ -0,0 +1,14 @@
{
"db_host": "localhost",
"db_name": "test_frappe",
"db_password": "test_frappe",
"db_type": "mariadb",
"auto_email_id": "test@example.com",
"mail_server": "smtp.example.com",
"mail_login": "test@example.com",
"mail_password": "test",
"admin_password": "admin",
"root_login": "root",
"root_password": "travis",
"host_name": "http://test_site:8000"
}

14
test_sites/postgres.json Normal file
View file

@ -0,0 +1,14 @@
{
"db_host": "localhost",
"db_name": "test_frappe",
"db_password": "test_frappe",
"db_type": "postgres",
"auto_email_id": "test@example.com",
"mail_server": "smtp.example.com",
"mail_login": "test@example.com",
"mail_password": "test",
"admin_password": "admin",
"root_login": "postgres",
"root_password": "travis",
"host_name": "http://test_site:8000"
}