gonews/.gitlab-ci.yml
2019-09-02 19:56:35 +05:00

30 lines
515 B
YAML

image: lab.wtfteam.pro:4567/containers/golangci-lint
variables:
APP_PATH: $APP_PATH
APP_NAME: gonews
stages:
- test
before_script:
- go version
- golangci-lint --version
- mkdir -p $GOPATH/src/$APP_PATH/$APP_NAME
- ln -s $CI_PROJECT_DIR $GOPATH/src/$APP_PATH/$APP_NAME
- cd $GOPATH/src/$APP_PATH/$APP_NAME
lint:
stage: test
tags:
- docker
script:
- golangci-lint linters
- golangci-lint run
test:
stage: test
tags:
- docker
script:
- go test -test.v -cover ./...