Skip to content
Snippets Groups Projects

Resolve "Isolate Integration Tests"

Merged Ghost User requested to merge 91-isolate-integration-tests into develop
7 files
+ 100
105
Compare changes
  • Side-by-side
  • Inline
Files
7
+ 13
15
integration-test:
.integration-test: &it
image: golang:1.14
stage: integration-test
needs: ["apply"]
needs: [ "apply" ]
variables:
- GOSDN_LOG: nolog
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_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_TARGET_BRANCH_NAME != $CI_DEFAULT_BRANCH
- if: $CI_COMMIT_BRANCH == "integration-test"
allow_failure: true
script:
- go test -race $(go list ./... | grep -v /forks/ | grep -v /api/ | grep -v /mocks ) -v -coverprofile=coverage.out
after_script:
- go tool cover -func=coverage.out
integration-test-merge-request:
image: golang:1.14
stage: integration-test
allow_failure: true
needs: ["apply"]
rules:
- if: $CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_TARGET_BRANCH_NAME != $CI_DEFAULT_BRANCH
script:
- go test -race $(go list ./... | grep -v /forks/ | grep -v /api/ | grep -v /mocks ) -v -coverprofile=coverage.out
after_script:
- go tool cover -func=coverage.out
integration-test:nucleus
<<: *it
script:
- cd ./nucleus
- go test -race -v -coverprofile=coverage.out
unit-test:
image: golang:1.14
stage: test
allow_failure: true
variables:
- GOSDN_LOG: nolog
rules:
- if: $CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == $CI_DEFAULT_BRANCH
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
Loading