-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
58 lines (52 loc) · 1.6 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
stages:
- quality
- generated output unit testing
- generated output integration testing
before_script:
- mkdir -p /go/src/gitlab.com/verygoodsoftwarenotvirus/
- cp -rf /builds/verygoodsoftwarenotvirus/naff /go/src/gitlab.com/verygoodsoftwarenotvirus/
- cd /go/src/gitlab.com/verygoodsoftwarenotvirus/naff
formatting:
stage: quality
image: golang:1.17-stretch
variables:
GOPATH: "/go"
script:
- apt-get update -y && apt-get install -y make git
- if [ $(gofmt -l . | grep -Ev '^vendor\/' | head -c1 | wc -c) -ne 0 ]; then exit 1; fi
coverage:
stage: quality
image: golang:1.17-stretch
variables:
GOPATH: "/go"
script:
- apt-get update -y && apt-get install -y make git
- GO111MODULE=off go get -u golang.org/x/tools/cmd/goimports
- make coverage
todo:
stage: generated output unit testing
image: golang:1.17-stretch
variables:
GOPATH: "/go"
script:
- apt-get update -y && apt-get install -y make git
- GO111MODULE=off go get -u golang.org/x/tools/cmd/goimports
- make ci-todo-project-unit-tests
every type:
stage: generated output unit testing
image: golang:1.17-stretch
variables:
GOPATH: "/go"
script:
- apt-get update -y && apt-get install -y make git
- GO111MODULE=off go get -u golang.org/x/tools/cmd/goimports
- make ci-every-type-project-unit-tests
forums:
stage: generated output unit testing
image: golang:1.17-stretch
variables:
GOPATH: "/go"
script:
- apt-get update -y && apt-get install -y make git
- GO111MODULE=off go get -u golang.org/x/tools/cmd/goimports
- make ci-forums-project-unit-tests