Skip to content
Snippets Groups Projects
Commit 0c3d6b1c authored by Christian Pointner's avatar Christian Pointner
Browse files

improve gitlab ci

parent 7050d75f
No related branches found
No related tags found
No related merge requests found
......@@ -4,16 +4,20 @@ stages:
- test
- build
format:
vet:
stage: test
script:
- go vet ./...
test:
stage: test
script:
## sqlite does not work right now (because the foreign key handling in gorm is flawed)
## so the store test cases need a mysql server now *grrrrr*
#- go test -v -cover $(go list ./... | grep -v /vendor/)
- go test -v -cover $(go list ./... | grep -v tank/store)
compile:
stage: build
build:
stage: compile
script:
- go build -ldflags "-extldflags '-static'" -tags netgo -o $CI_PROJECT_DIR/tank ./cmd/tank
## sqlite needs cgo... :(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment