-
Notifications
You must be signed in to change notification settings - Fork 4
/
.gitlab-ci.yml
67 lines (58 loc) · 1.02 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
65
66
67
image: golang:1.12
services:
- docker:dind
cache:
key: ${CI_COMMIT_REF_SLUG}
paths:
- .cache
before_script:
- mkdir -p .cache
- export GOPATH="$CI_PROJECT_DIR/.cache"
- make dep
stages:
- test
- build
- release
verify:
stage: test
script:
- make checkfmt
- make fmt
- make vet
- make race
#- make msan
- make gocyclo
- make golint
- make ineffassign
- make misspell
unit_test:
stage: test
script:
- make test
artifacts:
paths:
- coverage/
compile:
stage: build
script:
- make
artifacts:
paths:
- bin/multikube-linux-amd64
- bin/multikube-linux-arm
- bin/multikube-darwin-amd64
- bin/multikube-windows-amd64.exe
docker_hub:
image: docker:18
stage: release
before_script:
- ''
script:
- apk add --update make git
- echo -n $CI_JOB_TOKEN | docker login -u gitlab-ci-token --password-stdin $CI_REGISTRY
- make docker_build
- make docker_push
only:
- tags
except:
- branches