Skip to content
Snippets Groups Projects

Resolve "Improve pipeline speed"

Merged Ghost User requested to merge 126-improve-pipeline-speed into develop
Compare and Show latest version
1 file
+ 2
17
Compare changes
  • Side-by-side
  • Inline
+ 2
17
.integration-test: &integration-test
image: golang:1.16
image: registry.code.fbi.h-da.de/cocsn/gosdn:testing_${CI_PIPELINE_ID}
stage: integration-test
needs:
- job: "containerlab:deploy"
@@ -36,8 +36,6 @@ integration-test:api:
.test: &test
image: registry.code.fbi.h-da.de/cocsn/gosdn:testing_${CI_PIPELINE_ID}
stage: test
tags:
- docker-builder
allow_failure: true
variables:
GOSDN_LOG: "nolog"
@@ -49,19 +47,6 @@ integration-test:api:
- if: $CI_COMMIT_BRANCH != $CI_DEFAULT_BRANCH
allow_failure: true
#unit_testing:
# before_script:
# - echo "override global before script"
# stage: test
# allow_failure: false
# needs: ["build_testing"]
# tags:
# - shell-builder
# script:
# - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
# - docker pull registry.code.fbi.h-da.de/cocsn/gosdn:testing_${CI_PIPELINE_ID}
# - docker run registry.code.fbi.h-da.de/cocsn/gosdn:testing_${CI_PIPELINE_ID} ./run_tests.sh
unit-test:
script:
- go test -short -race $(go list ./... | grep -v /forks/ | grep -v /api/ | grep -v /mocks ) -v -coverprofile=coverage.out
@@ -70,7 +55,7 @@ unit-test:
<<: *test
controller-test:
image: golang:1.16
script:
- ls
- go test -race -v -run TestRun
<<: *test
Loading