forked from IBM/dac-lib
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.gitlab-ci.yml
64 lines (57 loc) · 1.27 KB
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
stages:
- test
- release
go-vet:
image: dbogatov/docker-sources:golang-1.13-alpine
stage: test
script:
- go vet ./dac/
tags:
- docker
tests:
image: dbogatov/docker-sources:golang-1.13-alpine
stage: test
before_script:
- go get -u github.com/jstemmer/go-junit-report
script:
- go test ./dac/ -v -timeout 30m -covermode=count -coverprofile=coverage.out 2>&1 | tee /dev/stderr | go-junit-report > report.xml
- go tool cover -html=coverage.out -o coverage.html
artifacts:
reports:
junit: report.xml
paths:
- coverage.html
tags:
- docker
include:
- template: Dependency-Scanning.gitlab-ci.yml
- template: SAST.gitlab-ci.yml
# - template: Code-Quality.gitlab-ci.yml
sast:
variables:
SAST_DISABLE_DIND: "true"
tags:
- docker
dependency_scanning:
variables:
DS_DISABLE_DIND: "true"
tags:
- docker
# code_navigation:
# image: dbogatov/docker-sources:golang-1.13-alpine
# stage: release
# script:
# - apk add --update git
# - go get github.com/sourcegraph/lsif-go/cmd/lsif-go
# - lsif-go
# artifacts:
# reports:
# lsif: dump.lsif
# rules:
# - if: '$CI_COMMIT_REF_NAME == "master"'
# when: on_success
# tags:
# - docker
# code_quality:
# tags:
# - docker