ci load golang depens where needed
This commit is contained in:
parent
60bc6049b9
commit
eddae7806f
|
@ -6,12 +6,12 @@ stages:
|
||||||
before_script:
|
before_script:
|
||||||
- mkdir -p /go/src/github.com/FreifunkBremen/
|
- mkdir -p /go/src/github.com/FreifunkBremen/
|
||||||
- cp -R $CI_PROJECT_DIR /go/src/github.com/FreifunkBremen/
|
- cp -R $CI_PROJECT_DIR /go/src/github.com/FreifunkBremen/
|
||||||
- go get -v github.com/FreifunkBremen/$CI_PROJECT_NAME
|
|
||||||
- cd /go/src/github.com/FreifunkBremen/$CI_PROJECT_NAME
|
- cd /go/src/github.com/FreifunkBremen/$CI_PROJECT_NAME
|
||||||
|
|
||||||
build-my-project:
|
build-my-project:
|
||||||
stage: build
|
stage: build
|
||||||
script:
|
script:
|
||||||
|
- go get -v github.com/FreifunkBremen/$CI_PROJECT_NAME
|
||||||
- mkdir $CI_PROJECT_DIR/bin/
|
- mkdir $CI_PROJECT_DIR/bin/
|
||||||
- cp /go/bin/$CI_PROJECT_NAME $CI_PROJECT_DIR/bin/$CI_PROJECT_NAME
|
- cp /go/bin/$CI_PROJECT_NAME $CI_PROJECT_DIR/bin/$CI_PROJECT_NAME
|
||||||
artifacts:
|
artifacts:
|
||||||
|
@ -24,12 +24,12 @@ test-my-project:
|
||||||
script:
|
script:
|
||||||
- ./.ci/check-gofmt
|
- ./.ci/check-gofmt
|
||||||
- ./.ci/check-testfiles
|
- ./.ci/check-testfiles
|
||||||
- go get -d github.com/stretchr/testify/assert
|
- go get -t -v github.com/FreifunkBremen/$CI_PROJECT_NAME
|
||||||
- go test $(go list ./... | grep -v /vendor/ | grep -v /webroot/) -v -coverprofile .testCoverage.txt
|
- go test $(go list ./... | grep -v /vendor/ | grep -v /webroot/) -v -coverprofile .testCoverage.txt
|
||||||
- go tool cover -func=.testCoverage.txt
|
- go tool cover -func=.testCoverage.txt
|
||||||
|
|
||||||
test-race-my-project:
|
test-race-my-project:
|
||||||
stage: test
|
stage: test
|
||||||
script:
|
script:
|
||||||
- go get -d github.com/stretchr/testify/assert
|
- go get -t -v github.com/FreifunkBremen/$CI_PROJECT_NAME
|
||||||
- go test -race ./...
|
- go test -race ./...
|
||||||
|
|
Loading…
Reference in New Issue