Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
28 lines (24 sloc) 555 Bytes
image: golang
stages:
- test
- build
before_script:
- export GOPATH=/cache/go
unit_tests:
stage: test
script:
- go test -cover $(go list ./... | grep -v /vendor/)
lint_code:
stage: test
allow_failure: true
script:
- go get -u golang.org/x/lint/golint
- /cache/go/bin/golint -set_exit_status $(go list ./... | grep -v /vendor/)
build:
stage: build
script:
- go get -u github.com/gobuffalo/packr/v2/packr2
- $(go env GOPATH)/bin/packr2 build -ldflags="-s -w" cmd/wtfd.go
artifacts:
paths:
- cmd/wtfd
You can’t perform that action at this time.