[TASK] add gitlab-ci
This commit is contained in:
parent
d84fd1cfbd
commit
89b426f3a9
|
@ -4,25 +4,27 @@ stages:
|
||||||
- test
|
- test
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- mkdir -p /go/src/git.sum7.eu/genofire/
|
- mkdir -p /go/src/dev.sum7.eu/$CI_PROJECT_NAMESPACE/
|
||||||
- cp -R /builds/genofire/logmania /go/src/git.sum7.eu/genofire/logmania
|
- cp -R /builds/$CI_PROJECT_PATH /go/src/dev.sum7.eu/$CI_PROJECT_NAMESPACE/
|
||||||
- cd /go/src/git.sum7.eu/genofire/logmania
|
- cd /go/src/dev.sum7.eu/$CI_PROJECT_PATH
|
||||||
- go get -d -t ./...
|
- go get -d -t ./...
|
||||||
|
|
||||||
build-my-project:
|
build-my-project:
|
||||||
stage: build
|
stage: build
|
||||||
script:
|
script:
|
||||||
- go install git.sum7.eu/genofire/logmania
|
- go install dev.sum7.eu/$CI_PROJECT_PATH
|
||||||
|
- mv /go/bin/$CI_PROJECT_NAME /builds/$CI_PROJECT_PATH
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- /go/bin/logmania
|
- $CI_PROJECT_NAME
|
||||||
|
|
||||||
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
|
||||||
- ./.ci/check-misspell
|
|
||||||
- go test $(go list ./... | grep -v /vendor/) -v -coverprofile .testCoverage.txt
|
- go test $(go list ./... | grep -v /vendor/) -v -coverprofile .testCoverage.txt
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
|
|
Loading…
Reference in New Issue