Skip to content
Snippets Groups Projects
Commit 32e8703a authored by Manuel Kieweg's avatar Manuel Kieweg
Browse files

Merge branch fix-ci with refs/heads/master into refs/merge-requests/136/train

parents 3956fac3 7051e902
No related branches found
No related tags found
No related merge requests found
Pipeline #68038 passed
...@@ -52,10 +52,11 @@ deploy:latest: ...@@ -52,10 +52,11 @@ deploy:latest:
rules: rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
k8s:destroy: destroy:k8s:
image: bitnami/kubectl:latest image: bitnami/kubectl:latest
rules: rules:
- if: $CI_PIPELINE_SOURCE == "merge_request_event" - if: $CI_PIPELINE_SOURCE == "merge_request_event"
when: always
before_script: before_script:
- echo "override global before script" - echo "override global before script"
stage: .post stage: .post
......
...@@ -64,7 +64,7 @@ apply: ...@@ -64,7 +64,7 @@ apply:
- plan - plan
<<: *tf <<: *tf
tf:destroy: destroy:tf:
stage: .post stage: .post
script: script:
- gitlab-terraform destroy - gitlab-terraform destroy
......
...@@ -9,10 +9,13 @@ integration-test: ...@@ -9,10 +9,13 @@ integration-test:
GOSDN_TEST_API_ENDPOINT: http://gosdn-$CI_COMMIT_SHA.apps.ocp.fbi.h-da.de/api GOSDN_TEST_API_ENDPOINT: http://gosdn-$CI_COMMIT_SHA.apps.ocp.fbi.h-da.de/api
rules: rules:
- if: $CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == $CI_DEFAULT_BRANCH - if: $CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == $CI_DEFAULT_BRANCH
when: delayed
start_in: 2 minutes
- if: $CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_TARGET_BRANCH_NAME != $CI_DEFAULT_BRANCH - if: $CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_TARGET_BRANCH_NAME != $CI_DEFAULT_BRANCH
allow_failure: true allow_failure: true
when: delayed
start_in: 2 minutes
script: script:
- sleep 2m
- go test -race ./test/integration -v -coverprofile=coverage.out - go test -race ./test/integration -v -coverprofile=coverage.out
.test: &test .test: &test
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment