inits/.gitlab-ci.yml

33 lines
631 B
YAML
Raw Normal View History

2018-07-06 08:22:27 +00:00
image: golang:1.10.3
variables:
REPO_NAME: novit.nc/direktil/inits
before_script:
- mkdir -p $GOPATH/src/$(dirname $REPO_NAME)
- ln -svf $CI_PROJECT_DIR $GOPATH/src/$REPO_NAME
- cd $GOPATH/src/$REPO_NAME
stages:
- test
- build
format:
stage: test
script:
- go fmt ./...
- go vet ./...
- go test -race ./...
compile:
stage: build
script:
2018-07-06 08:33:30 +00:00
- go build ./cmd/dkl-apply-config
- go build ./cmd/dkl-system-init
- CGO_ENABLED=0 go build ./cmd/dkl-initrd-init
2018-07-06 08:22:27 +00:00
artifacts:
paths:
- dkl-apply-config
- dkl-system-init
- dkl-initrd-init