fix(travis): Use database specific site_config.json files
This commit is contained in:
parent
3edbf3ad34
commit
26b4e4b1c7
3 changed files with 35 additions and 5 deletions
12
.travis.yml
12
.travis.yml
|
|
@ -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
14
test_sites/mariadb.json
Normal 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
14
test_sites/postgres.json
Normal 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"
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue