2018-07-31 13:26:59 +00:00
|
|
|
image: golang:1.9
|
2018-07-31 13:09:39 +00:00
|
|
|
|
|
|
|
stages:
|
|
|
|
- test
|
|
|
|
|
|
|
|
before_script:
|
2018-07-31 13:38:07 +00:00
|
|
|
- go get -u golang.org/x/lint/golint
|
2018-07-31 13:09:39 +00:00
|
|
|
- go get -u github.com/kardianos/govendor
|
2018-10-08 16:40:39 +00:00
|
|
|
- mkdir -p /go/src/gitlab.adphi.fr/partitio/Nextcloud-Partitio
|
|
|
|
- cp -r $CI_PROJECT_DIR /go/src/gitlab.adphi.fr/partitio/Nextcloud-Partitio
|
2018-09-03 10:21:42 +00:00
|
|
|
- cd /go/src/gitlab.adphi.fr/partitio/Nextcloud-Partitio/gonextcloud
|
2018-10-16 09:52:34 +00:00
|
|
|
#- sed -i -e 's/$NEXTCLOUD_URL/'${NEXTCLOUD_URL//\//\\/}'/g' config.yml
|
|
|
|
#- sed -i -e 's/$NEXTCLOUD_PASSWORD/'${NEXTCLOUD_PASSWORD}'/g' config.yml
|
|
|
|
#- sed -i -e 's/$NEXTCLOUD_EMAIL/'${NEXTCLOUD_EMAIL}'/g' config.yml
|
2018-07-31 13:09:39 +00:00
|
|
|
- make dep
|
|
|
|
|
|
|
|
unit_tests:
|
|
|
|
stage: test
|
|
|
|
tags:
|
|
|
|
- docker
|
|
|
|
script:
|
|
|
|
- make test
|
|
|
|
|
2018-10-16 10:03:46 +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:
|
|
|
|
- make lint
|