ci: build all when has env var NIGHTLY_RUN

This commit is contained in:
Fu Hanxi 2022-02-09 14:55:34 +08:00
parent 347262f179
commit 91cb23d688
2 changed files with 3 additions and 1 deletions

View File

@ -27,6 +27,8 @@ BUILD_ALL_LABELS = [
'BOT_LABEL_BUILD_ALL_APPS',
'BOT_LABEL_REGULAR_TEST',
'BOT_LABEL_WEEKEND_TEST',
'NIGHTLY_RUN',
'BOT_LABEL_NIGHTLY_RUN',
]
BUILD_PER_JOB = 30 # each build takes 1 mins around

View File

@ -85,7 +85,7 @@ class IDFAssignTest(CIAssignTest.AssignTest):
def search_cases(self, case_filter=None):
_filter = deepcopy(case_filter) if case_filter else {}
if 'NIGHTLY_RUN' in os.environ:
if 'NIGHTLY_RUN' in os.environ or 'BOT_LABEL_NIGHTLY_RUN' in os.environ:
_filter.update({'nightly_run': True})
return super().search_cases(_filter)