fix gitlab ci
This commit is contained in:
parent
97e0095602
commit
536999d094
|
@ -5,31 +5,36 @@ 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/"
|
||||||
- cd /go/src/github.com/FreifunkBremen/$CI_PROJECT_NAME
|
- cd "/go/src/github.com/FreifunkBremen/$CI_PROJECT_NAME"
|
||||||
|
- go get -d -t ./...
|
||||||
|
|
||||||
build-my-project:
|
build-my-project:
|
||||||
stage: build
|
stage: build
|
||||||
script:
|
script:
|
||||||
|
- mkdir "$CI_PROJECT_DIR/bin/"
|
||||||
- go get -v github.com/FreifunkBremen/$CI_PROJECT_NAME
|
- go get -v github.com/FreifunkBremen/$CI_PROJECT_NAME
|
||||||
- mkdir $CI_PROJECT_DIR/bin/
|
- mv "/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:
|
||||||
paths:
|
paths:
|
||||||
- bin/$CI_PROJECT_NAME
|
- "bin/$CI_PROJECT_NAME"
|
||||||
- config_example.conf
|
- config_example.conf
|
||||||
|
|
||||||
test-my-project:
|
test-my-project:
|
||||||
stage: test
|
stage: test
|
||||||
script:
|
script:
|
||||||
|
- go get github.com/client9/misspell/cmd/misspell
|
||||||
|
- misspell -error .
|
||||||
- ./.ci/check-gofmt
|
- ./.ci/check-gofmt
|
||||||
- ./.ci/check-testfiles
|
- ./.ci/check-testfiles
|
||||||
- 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
|
||||||
|
artifacts:
|
||||||
|
paths:
|
||||||
|
- .testCoverage.txt
|
||||||
|
|
||||||
|
|
||||||
test-race-my-project:
|
test-race-my-project:
|
||||||
stage: test
|
stage: test
|
||||||
script:
|
script:
|
||||||
- go get -t -v github.com/FreifunkBremen/$CI_PROJECT_NAME
|
|
||||||
- go test -race ./...
|
- go test -race ./...
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
package data
|
Loading…
Reference in New Issue