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-18 01:48:27 +00:00
|
|
|
test:junit:
|
2020-01-18 01:04:51 +00:00
|
|
|
artifacts:
|
2020-01-18 01:48:27 +00:00
|
|
|
expire_in: 1 hour
|
2020-01-18 01:04:51 +00:00
|
|
|
reports:
|
|
|
|
junit:
|
|
|
|
report.xml
|
|
|
|
before_script:
|
|
|
|
- apk add --no-cache make
|
|
|
|
- go get -u github.com/jstemmer/go-junit-report
|
2020-01-18 01:48:27 +00:00
|
|
|
except:
|
|
|
|
- master
|
|
|
|
image: golang:1.13.6-alpine
|
|
|
|
script:
|
|
|
|
- make test_junit_report
|
|
|
|
stage: test
|
|
|
|
|
|
|
|
test:unit:
|
|
|
|
artifacts:
|
|
|
|
expire_in: 30 minutes
|
|
|
|
paths:
|
|
|
|
- code-coverage.html
|
|
|
|
before_script:
|
|
|
|
- apk add --no-cache make
|
2020-01-18 01:04:51 +00:00
|
|
|
image: golang:1.13.6-alpine
|
2020-01-18 01:48:27 +00:00
|
|
|
only:
|
|
|
|
- master@dananglin/pominal
|
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-18 01:04:51 +00:00
|
|
|
pages:
|
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- public
|
|
|
|
expire_in: 30 days
|
|
|
|
dependencies:
|
|
|
|
- test:unit
|
|
|
|
only:
|
2020-01-18 01:48:27 +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
|