-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
124 lines (115 loc) · 2.95 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
# Builds easylab-gw for amd64, armv5, armv6 and mips
# and compresses the binary using UPX with LZMA compression,
# to be useable on embedded platforms.
# Source it from https://hub.docker.com/r/syso/easylab-env/
image: syso/easylab-env
stages:
- release
cache:
paths:
- gopath/
release-i386:
stage: release
cache:
paths:
- gopath/
- node_modules/
- .glide/
- .npm/
artifacts:
paths:
- ./easylab-gw
script:
- export GOPATH=$CI_PROJECT_DIR/gopath/
- export GOROOT=/goroot
- apt-get update && apt-get install -y upx
- go get gopkg.in/gcfg.v1
- go get github.com/mattn/go-xmpp
- go get github.com/FabLabBerlin/easylab-lib
- go get github.com/FabLabBerlin/easylab-gw
- GOOS=linux GOARCH=386 go build -ldflags="-s -w" .
- upx --lzma ./easylab-gw
release-amd64:
stage: release
cache:
paths:
- gopath/
- node_modules/
- .glide/
- .npm/
artifacts:
paths:
- ./easylab-gw
script:
- export GOPATH=$CI_PROJECT_DIR/gopath/
- export GOROOT=/goroot
- apt-get update && apt-get install -y upx
- go get gopkg.in/gcfg.v1
- go get github.com/mattn/go-xmpp
- go get github.com/FabLabBerlin/easylab-lib
- go get github.com/FabLabBerlin/easylab-gw
- go build -ldflags="-s -w" .
- upx --lzma ./easylab-gw
release-armv5:
stage: release
cache:
paths:
- gopath/
- node_modules/
- .glide/
- .npm/
artifacts:
paths:
- ./easylab-gw
script:
- export GOPATH=$CI_PROJECT_DIR/gopath/
- export GOROOT=/goroot
- apt-get update && apt-get install -y upx
- go get gopkg.in/gcfg.v1
- go get github.com/mattn/go-xmpp
- go get github.com/FabLabBerlin/easylab-lib
- go get github.com/FabLabBerlin/easylab-gw
- GOOS=linux GOARCH=arm GOARM=5 go build -ldflags="-s -w" .
- upx --lzma ./easylab-gw
release-armv7:
stage: release
cache:
paths:
- gopath/
- node_modules/
- .glide/
- .npm/
artifacts:
paths:
- ./easylab-gw
script:
- export GOPATH=$CI_PROJECT_DIR/gopath/
- export GOROOT=/goroot
- apt-get update && apt-get install -y upx
- go get gopkg.in/gcfg.v1
- go get github.com/mattn/go-xmpp
- go get github.com/FabLabBerlin/easylab-lib
- go get github.com/FabLabBerlin/easylab-gw
- GOOS=linux GOARCH=arm GOARM=7 go build -ldflags="-s -w" .
- upx --lzma ./easylab-gw
release-mips:
stage: release
cache:
paths:
- gopath/
- node_modules/
- .glide/
- .npm/
artifacts:
paths:
- ./easylab-gw
script:
- export GOPATH=$CI_PROJECT_DIR/gopath/
- export GOROOT=/goroot
- apt-get update && apt-get install -y upx
- go get gopkg.in/gcfg.v1
- go get github.com/mattn/go-xmpp
- go get github.com/FabLabBerlin/easylab-lib
- go get github.com/FabLabBerlin/easylab-gw
- GOOS=linux GOARCH=mips go build -ldflags="-s -w" .
- upx --lzma ./easylab-gw