diff --git a/.github/helper/install.sh b/.github/helper/install.sh index 1db3def8..0b6ca531 100644 --- a/.github/helper/install.sh +++ b/.github/helper/install.sh @@ -20,7 +20,7 @@ bench get-app lms "${GITHUB_WORKSPACE}" echo "Setting Up Sites & Database..." mkdir ~/frappe-bench/sites/lms.test -cp "${GITHUB_WORKSPACE}/.github/helper/db/$DB.json" ~/frappe-bench/sites/lms.test/site_config.json +cp "${GITHUB_WORKSPACE}/.github/helper/site_config.json" ~/frappe-bench/sites/lms.test/site_config.json mariadb --host 127.0.0.1 --port 3306 -u root -ptravis -e "SET GLOBAL character_set_server = 'utf8mb4'"; @@ -44,7 +44,6 @@ bench start &> bench_start.log & CI=Yes bench build & build_pid=$! - bench --site lms.test reinstall --yes bench --site lms.test install-app lms diff --git a/.github/helper/site_config.json b/.github/helper/site_config.json new file mode 100644 index 00000000..85c9ce00 --- /dev/null +++ b/.github/helper/site_config.json @@ -0,0 +1,20 @@ +{ + "db_host": "127.0.0.1", + "db_port": 3306, + "db_name": "test_lms", + "db_password": "test_lms", + "allow_tests": true, + "enable_ui_tests": true, + "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": "123", + "host_name": "http://lms.test:8000", + "monitor": 1, + "server_script_enabled": true, + "mute_emails": true +}