Use Convention Plugin
This commit is contained in:
+21
-4
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user