-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
60 lines (60 loc) · 1.23 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
stages:
- build
- test
- deploy
build:
image: golang:1.12.4
stage: build
script:
- ln -s $PWD $GOPATH/src/gusher.cluster
- cd $GOPATH/src/gusher.cluster
- make build/linux
build:linux:
image: golang:1.12.4
stage: build
script:
- ln -s $PWD $GOPATH/src/gusher.cluster
- cd $GOPATH/src/gusher.cluster
- make build/linux
artifacts:
when: on_success
name: "gusher.cluster_${CI_BUILD_NAME}_${CI_BUILD_REF_NAME}"
paths:
- build/
only:
- tags
build:windows:
image: golang:1.12.4
stage: build
script:
- ln -s $PWD $GOPATH/src/gusher.cluster
- cd $GOPATH/src/gusher.cluster
- make build/windows
artifacts:
when: on_success
name: "gusher.cluster_${CI_BUILD_NAME}_${CI_BUILD_REF_NAME}"
paths:
- build/
only:
- tags
build:darwin:
image: golang:1.12.4
stage: build
script:
- ln -s $PWD $GOPATH/src/gusher.cluster
- cd $GOPATH/src/gusher.cluster
- make build/darwin
artifacts:
when: on_success
name: "gusher.cluster_${CI_BUILD_NAME}_${CI_BUILD_REF_NAME}"
paths:
- build/
only:
- tags
test:
image: golang:1.12.4
stage: test
script:
- ln -s $PWD $GOPATH/src/gusher.cluster
- cd $GOPATH/src/gusher.cluster
- make test