Encourage people to implement a change_url script

This commit is contained in:
Alexandre Aubin 2020-10-15 21:29:17 +02:00
parent cd396af50e
commit a374b997e0

View file

@ -326,6 +326,7 @@ class App(TestSuite):
print_header("MISC HELPER USAGE / CONSISTENCY")
self.run_tests()
#######################################
# _ _ _ #
# | | | | | | #
@ -436,7 +437,7 @@ class App(TestSuite):
###########################################################
@test()
def misc_files(app):
def mandatory_scripts(app):
filenames = ("manifest.json", "LICENSE", "README.md",
"scripts/install", "scripts/remove",
"scripts/upgrade",
@ -446,6 +447,12 @@ class App(TestSuite):
if not file_exists(app.path + "/" + filename):
yield Error("Providing %s is mandatory" % filename)
@test()
def change_url_script(app):
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")
@test()
def misc_legacy_phpini(app):