Skip to content
Snippets Groups Projects
Commit f4d172c2 authored by Nicola Jordan's avatar Nicola Jordan
Browse files

run only release script for tags

parent e91f0a0b
No related branches found
No related tags found
No related merge requests found
Pipeline #257792 failed with stage
in 52 seconds
......@@ -8,6 +8,8 @@ format:
stage: build
script:
- test -z "$(gofmt -l ./)"
except:
- tags # do not run for releases
vet:
stage: build
......@@ -18,6 +20,8 @@ vet:
paths:
- vet-report.json
expire_in: 1 hour
except:
- tags # do not run for releases
test:
stage: build
......@@ -29,18 +33,24 @@ test:
- test-report.json
- coverage.out
expire_in: 1 hour
except:
- tags # do not run for releases
staticcheck:
stage: build
script:
- go install honnef.co/go/tools/cmd/staticcheck@latest # ideally we should version pin
- staticcheck ./...
except:
- tags # do not run for releases
golint:
stage: build
script:
- go install golang.org/x/lint/golint@latest # ideally we should version pin
- golint -set_exit_status ./...
except:
- tags # do not run for releases
build:
stage: build
......@@ -51,6 +61,8 @@ build:
# grab anything not tracked in Git
untracked: true
expire_in: 1 hour
except:
- tags # do not run for releases
# sonar instance needs to be running on localhost:9000 for this to work!
sonarcloud-check:
......@@ -72,6 +84,8 @@ sonarcloud-check:
- .sonar/cache
script:
- sonar-scanner
except:
- tags # do not run for releases
release_job:
stage: release
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment