mirror of
https://github.com/Icinga/icingadb.git
synced 2026-05-28 04:35:54 -04:00
Move .gitlab-ci.yml into utils/
This commit is contained in:
parent
9eb8c75933
commit
1fbe0030bf
1 changed files with 21 additions and 0 deletions
21
utils/.gitlab-ci.yml
Normal file
21
utils/.gitlab-ci.yml
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
image: golang:latest
|
||||
|
||||
variables:
|
||||
REPO_NAME: git.icinga.com/icingadb/icingadb-connection
|
||||
|
||||
before_script:
|
||||
- mkdir -p $GOPATH/src/$(dirname $REPO_NAME)
|
||||
- ln -svf $CI_PROJECT_DIR $GOPATH/src/$REPO_NAME
|
||||
- cd $GOPATH/src/$REPO_NAME
|
||||
- git config --global url."https://gitlab-ci-token:${CI_JOB_TOKEN}@git.icinga.com/".insteadOf "https://git.icinga.com/"
|
||||
- go get -t ./...
|
||||
|
||||
stages:
|
||||
- test
|
||||
|
||||
test:
|
||||
stage: test
|
||||
script:
|
||||
- go fmt $(go list ./... | grep -v /vendor/)
|
||||
- go vet $(go list ./... | grep -v /vendor/)
|
||||
- go test -race $(go list ./... | grep -v /vendor/) -cover
|
||||
Loading…
Reference in a new issue