ci: build on custom infrastructure

This commit is contained in:
Martin Riedl 2024-07-01 23:46:13 +02:00
parent 85ab140761
commit 144d640578
Signed by: martinr92
GPG key ID: FB68DA65516A804C

View file

@ -10,6 +10,8 @@ checks:
script: script:
- go fmt $(go list ./...) - go fmt $(go list ./...)
- go vet $(go list ./...) - go vet $(go list ./...)
tags:
- docker
code coverage: code coverage:
stage: test stage: test
@ -26,6 +28,8 @@ code coverage:
paths: paths:
- coverage.cov - coverage.cov
- coverage.html - coverage.html
tags:
- docker
codecov.io: codecov.io:
stage: test stage: test
@ -42,6 +46,8 @@ codecov.io:
rules: rules:
- if: $CODECOV_TOKEN - if: $CODECOV_TOKEN
when: on_success when: on_success
tags:
- docker
# stage "sonarcloud" is only needed because of this issue: # stage "sonarcloud" is only needed because of this issue:
# https://gitlab.com/gitlab-org/gitlab/-/issues/30632 # https://gitlab.com/gitlab-org/gitlab/-/issues/30632
@ -61,6 +67,8 @@ sonarcloud-check:
- .sonar/cache - .sonar/cache
script: script:
- sonar-scanner - sonar-scanner
tags:
- docker
allow_failure: true allow_failure: true
# build template # build template
@ -71,6 +79,8 @@ sonarcloud-check:
dependencies: [] dependencies: []
script: script:
- go build . - go build .
tags:
- docker
darwin-amd64: darwin-amd64:
extends: .compile extends: .compile