logmania/.gitlab-ci.yml

31 lines
645 B
YAML

image: golang:latest
stages:
- build
- test
before_script:
- mkdir -p /go/src/git.sum7.eu/genofire/
- cp -R /builds/genofire/logmania /go/src/git.sum7.eu/genofire/logmania
- cd /go/src/git.sum7.eu/genofire/logmania
- dep ensure
build-my-project:
stage: build
script:
- go install git.sum7.eu/genofire/logmania
artifacts:
paths:
- /go/bin/logmania
test-my-project:
stage: test
script:
- ./.circleci/check-gofmt
- ./.circleci/check-testfiles
- go test $(go list ./... | grep -v /vendor/) -v -coverprofile .testCoverage.txt
test-race-my-project:
stage: test
script:
- go test -race ./...