mirror of
https://github.com/YunoHost/package_linter.git
synced 2024-09-03 20:06:12 +02:00
Require new tests.toml for apps v2
This commit is contained in:
parent
9fc8e0fb78
commit
c8abbe21a6
1 changed files with 13 additions and 6 deletions
|
@ -999,16 +999,23 @@ class Configurations(TestSuite):
|
||||||
############################
|
############################
|
||||||
|
|
||||||
@test()
|
@test()
|
||||||
def check_process_exists(self):
|
def tests_toml_exists(self):
|
||||||
|
|
||||||
app = self.app
|
app = self.app
|
||||||
|
|
||||||
check_process_file = app.path + "/check_process"
|
|
||||||
|
|
||||||
|
if app_packaging_format <= 1:
|
||||||
|
check_process_file = app.path + "/check_process"
|
||||||
if not file_exists(check_process_file):
|
if not file_exists(check_process_file):
|
||||||
yield Warning(
|
yield Warning(
|
||||||
"You should add a 'check_process' file to properly interface with the continuous integration system"
|
"You should add a 'check_process' file to properly interface with the continuous integration system"
|
||||||
)
|
)
|
||||||
|
else:
|
||||||
|
tests_toml_file = app.path + "/tests.toml"
|
||||||
|
if not file_exists(tests_toml_file):
|
||||||
|
yield Error(
|
||||||
|
"The 'check_process' file that interfaces with the app CI has now been replaced with 'tests.toml' format and is now mandatory for apps v2."
|
||||||
|
)
|
||||||
|
|
||||||
@test()
|
@test()
|
||||||
def check_process_syntax(self):
|
def check_process_syntax(self):
|
||||||
|
|
Loading…
Add table
Reference in a new issue