diff --git a/.gitlab-ci-modules.yml b/.gitlab-ci-modules.yml index 6530f98b3c..f2810932e0 100644 --- a/.gitlab-ci-modules.yml +++ b/.gitlab-ci-modules.yml @@ -468,12 +468,14 @@ test-modules-account_payment_stripe-sqlite: variables: PACKAGE: modules/account_payment_stripe TAG_PATTERN: '/^account_payment_stripe-.*/' + resource_group: stripe test-modules-account_payment_stripe-postgresql: extends: .test-postgresql variables: PACKAGE: modules/account_payment_stripe TAG_PATTERN: '/^account_payment_stripe-.*/' + resource_group: stripe check-doc-modules-account_product: extends: .check-doc diff --git a/.gitlab-scripts/generate-ci.py b/.gitlab-scripts/generate-ci.py index 3814509cbd..a445378e0f 100755 --- a/.gitlab-scripts/generate-ci.py +++ b/.gitlab-scripts/generate-ci.py @@ -17,13 +17,17 @@ test-${name}-sqlite: variables: PACKAGE: ${package} TAG_PATTERN: '/^${tag_name}-.*/' - +${extra} test-${name}-postgresql: extends: .test-postgresql variables: PACKAGE: ${package} TAG_PATTERN: '/^${tag_name}-.*/' -""") +${extra}""") +RESOURCE_GROUPS = { + 'account_payment_stripe': 'stripe', + 'web_shop_shopify': 'shopify', + } def main(filename): @@ -40,10 +44,15 @@ def render(file): name = tag_name = package.replace('/', '-') if tag_name.startswith('modules-'): tag_name = tag_name[len('modules-'):] + if resource_group := RESOURCE_GROUPS.get(tag_name): + extra = ' resource_group: ' + resource_group + '\n' + else: + extra = '' mapping = { 'name': name, 'package': package, 'tag_name': tag_name, + 'extra': extra, } file.write(TEMPLATE.substitute(mapping))