Use Convention Plugin

This commit is contained in:
2022-08-28 00:36:34 +02:00
parent 0074ca8627
commit 327babff53
7 changed files with 203 additions and 212 deletions
+21 -4
View File
@@ -1,12 +1,27 @@
variables:
GRADLE_OPTS: "-Dorg.gradle.daemon=false"
before_script:
- source "/home/gitlab-runner/.sdkman/bin/sdkman-init.sh"
- sdk d java 11.0.12-open
stages:
- prepare
- build
- test
- analysis
- deploy
before_script:
- go get -u github.com/jstemmer/go-junit-report
- go get -u github.com/t-yuki/gocover-cobertura
Prepare Go dependencies:
stage: prepare
script:
- go get -u github.com/spf13/cobra
- go get -u github.com/jstemmer/go-junit-report
- go get -u github.com/inconshreveable/mousetrap
- go get -u github.com/mitchellh/go-homedir
- go get -u github.com/t-yuki/gocover-cobertura
- go get -u github.com/cryptix/wav
- go get -u golang.org/x/lint/golint
Create Documentation:
stage: build
@@ -29,7 +44,9 @@ Test Go Application:
artifacts:
reports:
junit: report.xml
cobertura: coverage.xml
coverage_report:
coverage_format: cobertura
path: coverage.xml
Code analysis:
stage: analysis