[TEST] improve gitlab-ci
This commit is contained in:
parent
160364d97b
commit
ccdeccd48f
|
@ -25,3 +25,4 @@ _testmain.go
|
||||||
webroot
|
webroot
|
||||||
/config.toml
|
/config.toml
|
||||||
/vendor
|
/vendor
|
||||||
|
/bin
|
|
@ -6,7 +6,7 @@ stages:
|
||||||
before_script:
|
before_script:
|
||||||
- curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
|
- curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
|
||||||
- mkdir -p /go/src/github.com/FreifunkBremen/
|
- mkdir -p /go/src/github.com/FreifunkBremen/
|
||||||
- cp -R /builds/FreifunkBremen/yanic /go/src/github.com/FreifunkBremen/yanic
|
- cp -R /builds/freifunkbremen/yanic /go/src/github.com/FreifunkBremen/yanic
|
||||||
- cd /go/src/github.com/FreifunkBremen/yanic
|
- cd /go/src/github.com/FreifunkBremen/yanic
|
||||||
- dep ensure
|
- dep ensure
|
||||||
|
|
||||||
|
@ -14,9 +14,13 @@ build-my-project:
|
||||||
stage: build
|
stage: build
|
||||||
script:
|
script:
|
||||||
- go install -ldflags "-X github.com/FreifunkBremen/yanic/cmd.VERSION=`git -C $GOPATH/src/github.com/FreifunkBremen/yanic rev-parse HEAD`" github.com/FreifunkBremen/yanic
|
- go install -ldflags "-X github.com/FreifunkBremen/yanic/cmd.VERSION=`git -C $GOPATH/src/github.com/FreifunkBremen/yanic rev-parse HEAD`" github.com/FreifunkBremen/yanic
|
||||||
|
- mkdir /builds/freifunkbremen/yanic/bin/
|
||||||
|
- cp /go/bin/yanic /builds/freifunkbremen/yanic/bin/yanic
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- /go/bin/yanic
|
- bin/yanic
|
||||||
|
- config_example.toml
|
||||||
|
- config-respondd_example.toml
|
||||||
|
|
||||||
test-my-project:
|
test-my-project:
|
||||||
stage: test
|
stage: test
|
||||||
|
@ -24,6 +28,7 @@ test-my-project:
|
||||||
- ./.circleci/check-gofmt
|
- ./.circleci/check-gofmt
|
||||||
- ./.circleci/check-testfiles
|
- ./.circleci/check-testfiles
|
||||||
- go test $(go list ./... | grep -v /vendor/) -v -coverprofile .testCoverage.txt
|
- go test $(go list ./... | grep -v /vendor/) -v -coverprofile .testCoverage.txt
|
||||||
|
- go tool cover -func=.testCoverage.txt
|
||||||
|
|
||||||
test-race-my-project:
|
test-race-my-project:
|
||||||
stage: test
|
stage: test
|
||||||
|
|
Loading…
Reference in New Issue