pominal/.gitlab-ci.yml

49 lines
756 B
YAML
Raw Normal View History

2019-06-30 01:25:36 +01:00
---
include:
- template: 'Workflows/MergeRequest-Pipelines.gitlab-ci.yml'
stages:
- test
- deploy
variables:
CGO_ENABLED: 0
2019-06-30 01:25:36 +01:00
.install-make:
before_script:
- apk add --no-cache make
test:unit:
artifacts:
expire_in: 30 minutes
paths:
- code-coverage.html
extends: .install-make
image: golang:1.14.4-alpine
2019-06-30 01:25:36 +01:00
script:
- make test_cover_report
stage: test
2019-06-30 01:25:36 +01:00
test:lint:
extends: .install-make
image: golangci/golangci-lint:v1.23.1-alpine
script:
- make test_lint
stage: test
pages:
artifacts:
paths:
- public
expire_in: 30 days
dependencies:
- test:unit
only:
2020-01-18 01:55:28 +00:00
- master@dananglin/Pominal
script:
- mkdir public
- mv code-coverage.html public
stage: deploy
variables:
GIT_STRATEGY: none