2019-07-13 22:55:12 +00:00
|
|
|
image: golang:1.12
|
2018-07-31 13:09:39 +00:00
|
|
|
|
|
|
|
stages:
|
|
|
|
- test
|
|
|
|
|
|
|
|
before_script:
|
2018-10-26 13:35:50 +00:00
|
|
|
- mkdir -p /go/src/gitlab.bertha.cloud/partitio/Nextcloud-Partitio
|
|
|
|
- cp -r $CI_PROJECT_DIR /go/src/gitlab.bertha.cloud/partitio/Nextcloud-Partitio
|
|
|
|
- cd /go/src/gitlab.bertha.cloud/partitio/Nextcloud-Partitio/gonextcloud
|
2018-07-31 13:09:39 +00:00
|
|
|
- make dep
|
|
|
|
|
|
|
|
unit_tests:
|
|
|
|
stage: test
|
|
|
|
tags:
|
|
|
|
- docker
|
|
|
|
script:
|
|
|
|
- make test
|
|
|
|
|
2018-10-16 16:16:18 +00:00
|
|
|
race_detector:
|
|
|
|
stage: test
|
|
|
|
tags:
|
|
|
|
- docker
|
|
|
|
script:
|
|
|
|
- make race
|
2018-07-31 13:09:39 +00:00
|
|
|
|
|
|
|
code_coverage:
|
|
|
|
stage: test
|
|
|
|
tags:
|
|
|
|
- docker
|
|
|
|
script:
|
|
|
|
- make coverage
|
|
|
|
|
|
|
|
lint_code:
|
|
|
|
stage: test
|
|
|
|
tags:
|
|
|
|
- docker
|
|
|
|
script:
|
2019-07-14 14:06:50 +00:00
|
|
|
- go get -u golang.org/x/lint/golint
|
2019-07-13 22:55:12 +00:00
|
|
|
- make lint
|