@@ -587,12 +587,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
|
||||
@@ -3477,12 +3479,14 @@ test-modules-web_shop_shopify-sqlite:
|
||||
variables:
|
||||
PACKAGE: modules/web_shop_shopify
|
||||
TAG_PATTERN: '/^web_shop_shopify-.*/'
|
||||
resource_group: shopify
|
||||
|
||||
test-modules-web_shop_shopify-postgresql:
|
||||
extends: .test-postgresql
|
||||
variables:
|
||||
PACKAGE: modules/web_shop_shopify
|
||||
TAG_PATTERN: '/^web_shop_shopify-.*/'
|
||||
resource_group: shopify
|
||||
|
||||
check-doc-modules-web_shop_vue_storefront:
|
||||
extends: .check-doc
|
||||
|
||||
@@ -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))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user