2019-06-30 01:25:36 +01:00
|
|
|
---
|
2020-01-18 01:04:51 +00:00
|
|
|
stages:
|
|
|
|
- test
|
|
|
|
- deploy
|
2019-08-14 01:10:28 +01:00
|
|
|
|
|
|
|
variables:
|
|
|
|
CGO_ENABLED: 0
|
2019-06-30 01:25:36 +01:00
|
|
|
|
2020-01-24 09:51:21 +00:00
|
|
|
.install-make:
|
|
|
|
before_script:
|
|
|
|
- apk add --no-cache make
|
|
|
|
|
2020-01-18 01:48:27 +00:00
|
|
|
test:unit:
|
|
|
|
artifacts:
|
|
|
|
expire_in: 30 minutes
|
|
|
|
paths:
|
|
|
|
- code-coverage.html
|
2020-01-24 09:51:21 +00:00
|
|
|
extends: .install-make
|
2020-02-13 12:42:55 +00:00
|
|
|
image: golang:1.13.7-alpine
|
2019-06-30 01:25:36 +01:00
|
|
|
script:
|
2020-01-18 01:04:51 +00:00
|
|
|
- make test_cover_report
|
|
|
|
stage: test
|
2019-06-30 01:25:36 +01:00
|
|
|
|
2020-01-24 09:51:21 +00:00
|
|
|
test:lint:
|
|
|
|
extends: .install-make
|
|
|
|
image: golangci/golangci-lint:v1.23.1-alpine
|
|
|
|
script:
|
|
|
|
- make test_lint
|
|
|
|
stage: test
|
|
|
|
|
2020-01-18 01:04:51 +00:00
|
|
|
pages:
|
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- public
|
|
|
|
expire_in: 30 days
|
|
|
|
dependencies:
|
|
|
|
- test:unit
|
|
|
|
only:
|
2020-01-18 01:55:28 +00:00
|
|
|
- master@dananglin/Pominal
|
2020-01-18 01:04:51 +00:00
|
|
|
script:
|
|
|
|
- mkdir public
|
|
|
|
- mv code-coverage.html public
|
|
|
|
stage: deploy
|
|
|
|
variables:
|
|
|
|
GIT_STRATEGY: none
|