Skip to content
Snippets Groups Projects
Commit 8f468fbf authored by Lyuben Penkovski's avatar Lyuben Penkovski
Browse files

Update .gitlab-ci.yml to prev version before Eclipse helm changes

parent 924738a9
No related branches found
No related tags found
No related merge requests found
Pipeline #69633 passed
variables:
HELPERS_FILE: docker-build.yml
APP_HELM_NAME: signer
DOCKER_FILE: deployment/ci/Dockerfile
stages:
- compile
- test
- build
- manifest
- deploy
include:
- project: 'eclipse/xfsc/dev-ops/ci-templates'
file: 'golang-standard-ci.yaml'
ref: main
#stages:
# - test
#before_script:
# - ln -s /builds /go/src/gitlab.eclipse.org
# - cd /go/src/gitlab.eclipse.org/${CI_PROJECT_PATH}
#linters:
# image: golangci/golangci-lint:latest
# stage: test
# script:
# - go version
# - golangci-lint --version
# - golangci-lint run
#unit tests:
# image: golang:1.21.5
# stage: test
# script:
# - go version
# - go test $(go list ./... | grep -v /integration) -race -coverprofile=coverage.out
# - go tool cover -func=coverage.out
# coverage: '/total:\s+\(statements\)\s+(\d+.\d+\%)/'
#govulncheck:
# image: golang:1.21.5
# stage: test
# script:
# - go version
# - go install golang.org/x/vuln/cmd/govulncheck@latest
# - govulncheck ./...
- project: '${HELPERS_PATH}'
file: '${HELPERS_FILE}'
- template: 'Workflows/Branch-Pipelines.gitlab-ci.yml'
lint:
image: golangci/golangci-lint:latest
stage: test
tags:
- amd64-docker
script:
- golangci-lint --version
- golangci-lint run
before_script:
- ln -s /builds /go/src/gitlab.com
- cd /go/src/gitlab.com/${CI_PROJECT_PATH}
unit tests:
image: golang:1.21.5
stage: test
tags:
- amd64-docker
script:
- go version
- go test $(go list ./... | grep -v /integration) -race -coverprofile=coverage.out
- go tool cover -func=coverage.out
before_script:
- ln -s /builds /go/src/gitlab.com
- cd /go/src/gitlab.com/${CI_PROJECT_PATH}
coverage: '/total:\s+\(statements\)\s+(\d+.\d+\%)/'
govulncheck:
image: golang:1.21.5
stage: test
tags:
- amd64-docker
before_script:
- ln -s /builds /go/src/gitlab.com
- cd /go/src/gitlab.com/${CI_PROJECT_PATH}
script:
- go version
- go install golang.org/x/vuln/cmd/govulncheck@latest
- govulncheck ./...
amd64:
extends: .docker-build
stage: build
tags:
- amd64-docker
manifest:
extends: .manifest-amd64
stage: manifest
cloud:
extends: .manifest-cloud
stage: manifest
release:
extends: .manifest-release
stage: manifest
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment