add gitlab-ci
This commit is contained in:
parent
7f4f6d5f71
commit
1fb91cb8fa
|
@ -0,0 +1,34 @@
|
|||
image: golang:latest
|
||||
stages:
|
||||
- build
|
||||
- test
|
||||
|
||||
before_script:
|
||||
- mkdir -p /go/src/git.sum7.eu/genofire/
|
||||
- cp -R /builds/genofire/yaja /go/src/git.sum7.eu/genofire/yaja
|
||||
- cd /go/src/git.sum7.eu/genofire/yaja
|
||||
- go get -d -t ./...
|
||||
|
||||
build-my-project:
|
||||
stage: build
|
||||
script:
|
||||
- go install git.sum7.eu/genofire/yaja
|
||||
artifacts:
|
||||
paths:
|
||||
- /go/bin/yaja
|
||||
|
||||
test-my-project:
|
||||
stage: test
|
||||
script:
|
||||
- ./.ci/check-gofmt
|
||||
- ./.ci/check-testfiles
|
||||
- ./.ci/check-misspell
|
||||
- go test $(go list ./... | grep -v /vendor/) -v -coverprofile .testCoverage.txt
|
||||
artifacts:
|
||||
paths:
|
||||
- .testCoverage.txt
|
||||
|
||||
test-race-my-project:
|
||||
stage: test
|
||||
script:
|
||||
- go test -race ./...
|
Reference in New Issue