mirror of
https://github.com/YunoHost/package_linter.git
synced 2024-09-03 20:06:12 +02:00
Add check_process checks
This commit is contained in:
parent
a374b997e0
commit
2e4b25e008
1 changed files with 20 additions and 0 deletions
|
@ -453,6 +453,26 @@ class App(TestSuite):
|
||||||
if not file_exists(app.path + "/scripts/change_url"):
|
if not file_exists(app.path + "/scripts/change_url"):
|
||||||
yield Warning("Consider adding a change_url script to support changing where the app is installed")
|
yield Warning("Consider adding a change_url script to support changing where the app is installed")
|
||||||
|
|
||||||
|
@test()
|
||||||
|
def check_process_exists(app):
|
||||||
|
|
||||||
|
check_process_file = app.path + "/check_process"
|
||||||
|
|
||||||
|
if not file_exists(check_process_file):
|
||||||
|
yield Warning("You should add a 'check_process' file to properly interface with the continuous integration system")
|
||||||
|
|
||||||
|
@test()
|
||||||
|
def check_process_syntax(app):
|
||||||
|
|
||||||
|
check_process_file = app.path + "/check_process"
|
||||||
|
if not file_exists(check_process_file):
|
||||||
|
return
|
||||||
|
|
||||||
|
if os.system("grep -q 'Level 5=1' %s" % check_process_file) == 0:
|
||||||
|
yield Error("Do not force Level 5=1 in check_process...")
|
||||||
|
|
||||||
|
if os.system("grep -q ' *Level [^5]=' %s" % check_process_file) == 0:
|
||||||
|
yield Warning("Setting Level x=y in check_process is obsolete / not relevant anymore")
|
||||||
|
|
||||||
@test()
|
@test()
|
||||||
def misc_legacy_phpini(app):
|
def misc_legacy_phpini(app):
|
||||||
|
|
Loading…
Reference in a new issue