try gitlab-ci

This commit is contained in:
Martin/Geno 2018-11-06 00:52:45 +01:00
parent 5c906df45d
commit ec9cba9b2f
No known key found for this signature in database
GPG Key ID: 9D7D3C6BFF600C6A
1 changed files with 30 additions and 0 deletions

30
.gitlab-ci.yml Normal file
View File

@ -0,0 +1,30 @@
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
- go get -d -t
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 ./...