1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/framaforms_ynh.git synced 2024-09-03 18:36:12 +02:00

Merge pull request #70 from YunoHost-Apps/testing

Testing - cleanup
This commit is contained in:
Salamandar 2024-03-19 00:44:22 +01:00 committed by GitHub
commit ec4b2a6541
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 18 additions and 14 deletions

View file

@ -78,25 +78,25 @@ chown -R "$app:www-data" "$install_dir"
_ynh_exec_with_drush_php drush "@$app" site-install framaforms_org \ _ynh_exec_with_drush_php drush "@$app" site-install framaforms_org \
install_configure_form.site_contact_url="https://forum.yunohost.org/t/framaforms-create-polls-using-drag-and-drop/8208" \ install_configure_form.site_contact_url="https://forum.yunohost.org/t/framaforms-create-polls-using-drag-and-drop/8208" \
install_configure_form.site_default_country=FR \ install_configure_form.site_default_country=FR \
-y --locale="$language" --account-name="admin" --account-pass="$password" --site-name="Framaforms" --site-mail="$admin_mail" 2>&1 -y --locale="$language" --account-name="admin" --account-pass="$password" --site-name="Framaforms" --site-mail="$admin_mail"
_ynh_exec_with_drush_php drush "@$app" variable-set update_notify_emails "$admin_mail" _ynh_exec_with_drush_php drush "@$app" variable-set update_notify_emails "$admin_mail"
_ynh_exec_with_drush_php drush "@$app" variable-set file_private_path "/home/yunohost.app/$app/data" 2>&1 _ynh_exec_with_drush_php drush "@$app" variable-set file_private_path "/home/yunohost.app/$app/data"
_ynh_exec_with_drush_php drush "@$app" pm-enable framaforms_feature -y --resolve-dependencies 2>&1 _ynh_exec_with_drush_php drush "@$app" pm-enable framaforms_feature -y --resolve-dependencies
_ynh_exec_with_drush_php drush "@$app" php-eval "module_load_include('inc', 'framaforms', 'includes/framaforms.pages');create_all_pages();" 2>&1 || true _ynh_exec_with_drush_php drush "@$app" php-eval "module_load_include('inc', 'framaforms', 'includes/framaforms.pages');create_all_pages();" || true
#================================================= #=================================================
# IMPORTING LANGUAGE PACK # IMPORTING LANGUAGE PACK
#================================================= #=================================================
ynh_script_progression --message="Importing language pack..." --weight=5 ynh_script_progression --message="Importing language pack..." --weight=5
_ynh_exec_with_drush_php drush "@$app" pm-download -y drush_language 2>&1 _ynh_exec_with_drush_php drush "@$app" pm-download -y drush_language
_ynh_exec_with_drush_php drush "@$app" pm-download -y l10n_update 2>&1 _ynh_exec_with_drush_php drush "@$app" pm-download -y l10n_update
_ynh_exec_with_drush_php drush "@$app" pm-enable -y l10n_update 2>&1 _ynh_exec_with_drush_php drush "@$app" pm-enable -y l10n_update
_ynh_exec_with_drush_php drush "@$app" language-add "$language" -y 2>&1 _ynh_exec_with_drush_php drush "@$app" language-add "$language" -y
_ynh_exec_with_drush_php drush "@$app" language-default "$language" -y 2>&1 _ynh_exec_with_drush_php drush "@$app" language-default "$language" -y
_ynh_exec_with_drush_php drush "@$app" cache-clear drush -y 2>&1 _ynh_exec_with_drush_php drush "@$app" cache-clear drush -y
_ynh_exec_with_drush_php drush "@$app" l10n-update-refresh -y 2>&1 _ynh_exec_with_drush_php drush "@$app" l10n-update-refresh -y
_ynh_exec_with_drush_php drush "@$app" l10n-update -y 2>&1 _ynh_exec_with_drush_php drush "@$app" l10n-update -y
# We don't upgrade module to avoid to erase framaforms change # We don't upgrade module to avoid to erase framaforms change
# in drupal core and modules code # in drupal core and modules code

View file

@ -8,5 +8,9 @@ test_format = 1.0
# Tests to run # Tests to run
# ------------ # ------------
test_upgrade_from.cb1ccdf04ff50b14826a96da2930570bd482f233.name = "1.0.3~ynh3" [default.test_upgrade_from.cb1ccdf04ff50b14826a96da2930570bd482f233]
test_upgrade_from.cb1ccdf04ff50b14826a96da2930570bd482f233.args.path = "/" name = "1.0.3~ynh3"
args.path = "/"
args.domain = "domain.tld"
args.admin = "package_checker"
args.password = "MySuperComplexPassword"