sum7
/
yaja
Archived
1
0
Fork 0

add gitlab-ci

This commit is contained in:
Martin/Geno 2018-12-14 23:52:28 +01:00
parent 7f4f6d5f71
commit 1fb91cb8fa
No known key found for this signature in database
GPG Key ID: 9D7D3C6BFF600C6A
1 changed files with 34 additions and 0 deletions

34
.gitlab-ci.yml Normal file
View File

@ -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 ./...