1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/icecoder_ynh.git synced 2024-09-03 19:26:10 +02:00

Merge pull request #29 from YunoHost-Apps/testing

Testing
This commit is contained in:
Stylix58 2021-06-06 10:25:34 +02:00 committed by GitHub
commit 49efa0a6b3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 13 additions and 66 deletions

View file

@ -1,62 +1,18 @@
;; Test complet
; pre-install
sudo yunohost app install my_webapp -a domain=domain.tld&path=/site&admin=john&is_public=1&password=pass
; Manifest
domain="domain.tld" (DOMAIN)
app_id="my_webapp" (APP_ID)
; Checks
pkg_linter=1
setup_sub_dir=1
setup_sub_dir=0
setup_root=1
setup_nourl=0
setup_private=1
setup_public=1
upgrade=1
upgrade=1 from_commit=CommitHash
backup_restore=1
multi_instance=1
port_already_use=0
change_url=1
;;; Options
Email=
Notification=none
;;; Upgrade options
; commit=CommitHash
name=Name and date of the commit.
manifest_arg=domain=DOMAIN&path=PATH&admin=APP_ID&
;; Default test serie
# Comment ignored
; pre-install
sudo yunohost app install my_webapp -a domain=domain.tld&path=/site&admin=john&is_public=1&password=pass
; Manifest
# You need to provide default values for installation parameters ...
# EXCEPT for special args: domain, path, admin, and is_public
# which will be filled automatically during tests
language=""
password=""
port=""
; Actions
is_public=1
; Config_panel
main.categorie.config_example=none
main.overwrite_files.overwrite_phpfpm=none
main.php_fpm_config.footprint=none
main.php_fpm_config.free_footprint=none
main.php_fpm_config.usage=none
; Checks
pkg_linter=1
setup_sub_dir=1
setup_root=0
setup_nourl=0
setup_private=0
setup_public=0
upgrade=1
upgrade=1 from_commit=65c382d138596fcb32b4c97c39398815a1dcd4e8
backup_restore=1
multi_instance=0
port_already_use=0 (66)
change_url=0
actions=0
config_panel=0
;;; Upgrade options
; commit=65c382d138596fcb32b4c97c39398815a1dcd4e8
name=Name of this previous version
manifest_arg=domain=DOMAIN&app_id=APP_ID&
port_already_use=0
change_url=1

View file

@ -3,16 +3,15 @@
"id": "icecoder",
"packaging_format": 1,
"description": {
"en": "Code editor awesomeness ...in your browser",
"fr": "Un éditeur de code impressionnant ...dans votre navigateur"
"en": "Code editor awesomeness... in your browser",
"fr": "Un éditeur de code impressionnant... dans votre navigateur"
},
"version": "2.0.0~ynh1",
"url": "https://icecoder.net/",
"version": "2.0.1~ynh1",
"url": "https://icecoder.net",
"license": "AGPL-3.0-only",
"maintainer": {
"name": "Stylix58",
"email": "lateman-jpeg@outlook.fr",
"url": "https://stylix58.netlify.app/"
"email": "lateman-jpeg@outlook.fr"
},
"requirements": {
"yunohost": ">= 4.1.3"
@ -24,11 +23,6 @@
],
"arguments": {
"install" : [
{
"name": "domain",
"type": "domain",
"example": "example.com"
},
{
"name": "app_id",
"type": "string",
@ -38,7 +32,7 @@
},
"help": {
"en": "You can get the ID in Custom Webapp's settings.",
"fr": "Vous pouvez obtenir l'ID dans les paramètres de la Webapp personnalisée."
"fr": "Vous pouvez obtenir l'ID dans les paramètres de la Custom Webapp."
}
}
]

View file

@ -20,7 +20,6 @@ ynh_abort_if_errors
# RETRIEVE ARGUMENTS FROM THE MANIFEST
#=================================================
domain=$YNH_APP_ARG_DOMAIN
app_id=$YNH_APP_ARG_APP_ID
path_url="/in-$app_id-folder"
@ -65,7 +64,7 @@ ynh_webpath_register --app=$app --domain=$domain --path_url=$path_url
#=================================================
ynh_script_progression --message="Storing installation settings..." --weight=1
ynh_app_setting_set --app=$app --key=domain --value=$domain
ynh_app_setting_set --app=$app --key=domain --value=none.ynh.fr
ynh_app_setting_set --app=$app --key=path --value=$path_url
ynh_app_setting_set --app=$app --key=app_id --value=$app_id
@ -82,8 +81,6 @@ ynh_app_setting_set --app=$app --key=final_path --value=$final_path
# Download, check integrity, uncompress and patch the source from app.src
ynh_setup_source --dest_dir="$final_path"
#=================================================
#=================================================
# GENERIC FINALIZATION
#=================================================