Package: ci-ynh
ci_ynh for YunoHostThis package allows you to install ci_ynh quickly and simply on a YunoHost server.
If you don't have YunoHost, please consultthe guideto learn how to install it.Experimental and currently not working ;)Pull requests welcome ;)Discuss:https://forum.yunohost.org/t/ci-ynh-package-check-as-yunohost-app-using-django/13894Overviewci_ynhCI to check YunoHost packages on self hosted YunoHost instance, using Python/Django.LinksReport a bugs:https://github.com/YunoHost-Apps/ci_ynhYunoHost website:https://yunohost.org/Developer infopackage installation / debuggingPlease send your pull request tohttps://github.com/YunoHost-Apps/ci_ynhTry 'main' branch, e.g.:sudoyunohostappinstallhttps://github.com/YunoHost-Apps/ci_ynh/tree/master--debug
or
sudoyunohostappupgradeci_ynh-uhttps://github.com/YunoHost-Apps/ci_ynh/tree/master--debugTry 'testing' branch, e.g.:sudoyunohostappinstallhttps://github.com/YunoHost-Apps/ci_ynh/tree/testing--debug
or
sudoyunohostappupgradeci_ynh-uhttps://github.com/YunoHost-Apps/ci_ynh/tree/testing--debugTo remove call e.g.:sudoyunohostappremoveci_ynhRun manual CI check. e.g.:root@yunohost:~#cd/opt/yunohost/ci_ynh/
root@yunohost:/opt/yunohost/ci_ynh#sourcevenv/bin/activate(venv)root@yunohost:/opt/yunohost/ci_ynh#./manage.pyci_rundjango_ynhBackup / remove / restore cycle, e.g.:yunohostbackupcreate--appsci_ynh
yunohostbackuplist
archives:-ci_ynh-pre-upgrade1-20201223-163434
yunohostappremoveci_ynh
yunohostbackuprestore20201223-163434--appsci_ynhDebug installation, e.g.:root@yunohost:~#ls-la/var/www/ci_ynh/
total18drwxr-xr-x4rootroot4Dec808:36.
drwxr-xr-x6rootroot6Dec808:36..
drwxr-xr-x2rootroot2Dec808:36media
drwxr-xr-x7rootroot8Dec808:40static

root@yunohost:~#ls-la/opt/yunohost/ci_ynh/
total58drwxr-xr-x5ci_ynhci_ynh11Dec808:39.
drwxr-xr-x3rootroot3Dec808:36..
-rw-r--r--1ci_ynhci_ynh460Dec808:39gunicorn.conf.py
-rw-r--r--1ci_ynhci_ynh0Dec808:39local_settings.py
-rwxr-xr-x1ci_ynhci_ynh274Dec808:39manage.py
-rw-r--r--1ci_ynhci_ynh171Dec808:39secret.txt
drwxr-xr-x6ci_ynhci_ynh6Dec808:37venv
-rw-r--r--1ci_ynhci_ynh115Dec808:39wsgi.py
-rw-r--r--1ci_ynhci_ynh4737Dec808:39settings.py

root@yunohost:~#cd/opt/yunohost/ci_ynh/
root@yunohost:/opt/yunohost/ci_ynh#sourcevenv/bin/activate(venv)root@yunohost:/opt/yunohost/ci_ynh#./manage.pycheck
ci_ynhv0.8.2(Djangov2.2.17)DJANGO_SETTINGS_MODULE='settings'PROJECT_PATH:/opt/yunohost/ci_ynh/venv/lib/python3.7/site-packages
BASE_PATH:/opt/yunohost/ci_ynh
Systemcheckidentifiednoissues(0silenced).

root@yunohost:~#tail-f/var/log/ci_ynh/ci_ynh.log
root@yunohost:~#cat/etc/systemd/system/ci_ynh.service

root@yunohost:~#systemctlreload-or-restartci_ynh
root@yunohost:~#journalctl--unit=ci_ynh--followlocal testFor quicker developing of ci_ynh in the context of YunoHost app,
it's possible to run the Django developer server with the settings
and urls made for YunoHost installation.e.g.:~$gitclonehttps://github.com/YunoHost-Apps/ci_ynh.git
~$cdci_ynh/
~/ci_ynh$make
install-poetryinstallorupdatepoetry
installinstallci_ynhviapoetry
updateupdatethesourcesandinstallation
local-testRunlocal_test.pytorunci_ynhlocally
~/ci_ynh$makeinstall-poetry
~/ci_ynh$makeinstall
~/ci_ynh$makelocal-testNotes:SQlite database will be usedA super user with usernametestand passwordtestis createdThe page is available underhttp://127.0.0.1:8000/app_path/