Skip to content

Commit

Permalink
run keycloak and needed pipeline only
Browse files Browse the repository at this point in the history
  • Loading branch information
amrita-shrestha committed Nov 12, 2024
1 parent 99b3ae8 commit df439d0
Showing 1 changed file with 5 additions and 15 deletions.
20 changes: 5 additions & 15 deletions .drone.star
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ def main(ctx):

after = pipelinesDependsOn(afterPipelines(ctx), stages)

pipelines = before + stages + after
pipelines = before + stages

deploys = example_deploys(ctx)
if ctx.build.event != "cron":
Expand All @@ -210,8 +210,6 @@ def main(ctx):

def beforePipelines(ctx):
return checkStarlark() + \
licenseCheck(ctx) + \
documentation(ctx) + \
changelog(ctx) + \
pnpmCache(ctx) + \
cacheOcisPipeline(ctx) + \
Expand All @@ -227,7 +225,7 @@ def stagePipelines(ctx):

e2e_pipelines = e2eTests(ctx)
keycloak_pipelines = e2eTestsOnKeycloak(ctx)
return unit_test_pipelines + buildAndTestDesignSystem(ctx) + pipelinesDependsOn(e2e_pipelines + keycloak_pipelines, unit_test_pipelines)
return keycloak_pipelines

def afterPipelines(ctx):
return build(ctx) + pipelinesDependsOn(notify(), build(ctx))
Expand Down Expand Up @@ -1772,7 +1770,8 @@ def keycloakService():
"detach": True,
"environment": {
"OCIS_DOMAIN": "ocis:9200",
"KC_HOSTNAME": "keycloak:8443",
"KC_HOSTNAME": "keycloak",
"KC_HOSTNAME_PORT": 8443,
"KC_DB": "postgres",
"KC_DB_URL": "jdbc:postgresql://postgres:5432/keycloak",
"KC_DB_USERNAME": "keycloak",
Expand All @@ -1786,7 +1785,7 @@ def keycloakService():
"commands": [
"mkdir -p /opt/keycloak/data/import",
"cp tests/drone/ocis_keycloak/ocis-ci-realm.dist.json /opt/keycloak/data/import/ocis-realm.json",
"/opt/keycloak/bin/kc.sh start-dev --proxy=edge --spi-connections-http-client-default-disable-trust-manager=true --import-realm --health-enabled=true",
"/opt/keycloak/bin/kc.sh start-dev --proxy-headers xforwarded --spi-connections-http-client-default-disable-trust-manager=true --import-realm --health-enabled=true",
],
"volumes": [
{
Expand All @@ -1799,15 +1798,6 @@ def keycloakService():
def e2eTestsOnKeycloak(ctx):
e2e_Keycloak_tests = [
"keycloak",
"journeys",
"admin-settings/users.feature:20",
"admin-settings/users.feature:43",
"admin-settings/users.feature:106",
"admin-settings/users.feature:131",
"admin-settings/users.feature:185",
"admin-settings/spaces.feature",
"admin-settings/groups.feature",
"admin-settings/general.feature",
]

e2e_volumes = [
Expand Down

0 comments on commit df439d0

Please sign in to comment.