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

scricter testing

parent a3723be9
No related branches found
No related tags found
1 merge request!90Develop
Pipeline #67386 failed
...@@ -28,7 +28,6 @@ cache: ...@@ -28,7 +28,6 @@ cache:
variables: variables:
TF_VAR_container_tag: $CI_REGISTRY_IMAGE:mr-develop TF_VAR_container_tag: $CI_REGISTRY_IMAGE:mr-develop
- if: $CI_COMMIT_BRANCH == "integration-test" - if: $CI_COMMIT_BRANCH == "integration-test"
- if: $CI_COMMIT_BRANCH == "develop"
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
init: init:
......
...@@ -11,7 +11,7 @@ integration-test: ...@@ -11,7 +11,7 @@ integration-test:
after_script: after_script:
- go tool cover -func=coverage.out - go tool cover -func=coverage.out
unit-test-merge-request: integration-test-merge-request:
image: golang:1.14 image: golang:1.14
stage: integration-test stage: integration-test
allow_failure: true allow_failure: true
...@@ -27,7 +27,10 @@ unit-test: ...@@ -27,7 +27,10 @@ unit-test:
stage: test stage: test
allow_failure: true allow_failure: true
rules: rules:
- if: $CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == $CI_DEFAULT_BRANCH
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
- if: $CI_COMMIT_BRANCH != $CI_DEFAULT_BRANCH - if: $CI_COMMIT_BRANCH != $CI_DEFAULT_BRANCH
allow_failure: true
script: script:
- go test -short -race $(go list ./... | grep -v /forks/ | grep -v /api/ | grep -v /mocks ) -v -coverprofile=coverage.out - go test -short -race $(go list ./... | grep -v /forks/ | grep -v /api/ | grep -v /mocks ) -v -coverprofile=coverage.out
after_script: after_script:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment