-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathHyperMake
More file actions
170 lines (152 loc) · 3.92 KB
/
HyperMake
File metadata and controls
170 lines (152 loc) · 3.92 KB
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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
---
format: hypermake.v0
name: hmake
description: HyperMake builds your project without pre-requisites
targets:
builder:
description: build the docker image including toolchain
build: hack/builder
watches:
- hack/builder
vendor:
description: pull all vendor packages
after:
- builder
watches:
- 'vendor/manifest'
cmds:
- dep ensure
hmake-linux-[arch:amd64,arm,arm64]:
description: static linked hmake binary for linux-$[arch]
after:
- vendor
watches:
- '**/**/*.go'
- build.sh
cmds:
- ./build.sh linux $[arch]
artifacts:
- bin/linux/$[arch]/hmake
- bin/hmake-linux-$[arch].tar.gz
- bin/hmake-linux-$[arch].tar.gz.sha256sum
hmake-darwin-amd64:
description: static linked hmake binary for Mac OS
after:
- vendor
watches:
- '**/**/*.go'
- build.sh
cmds:
- ./build.sh darwin amd64
artifacts:
- bin/darwin/amd64/hmake
- bin/hmake-darwin-amd64.tar.gz
- bin/hmake-darwin-amd64.tar.gz.sha256sum
hmake-windows-amd64:
description: static linked hmake binary for Windows
after:
- vendor
watches:
- '**/**/*.go'
- build.sh
cmds:
- ./build.sh windows amd64
artifacts:
- bin/windows/amd64/hmake.exe
- bin/hmake-windows-amd64.zip
- bin/hmake-windows-amd64.zip.sha256sum
image-prep:
description: prepare for building hmake docker image
after:
- hmake-linux-amd64
watches:
- hack/image
cmds:
- cp -fr hack/image/Dockerfile bin/linux/Dockerfile
artifacts:
- bin/linux/Dockerfile
image:
description: hmake docker image
after:
- image-prep
build: bin/linux
image: 'evocloud/hmake:latest'
tags:
- 'evocloud/hmake:1.1.0'
- 'evocloud/hmake:1.1'
- 'evocloud/hmake:1'
push:
description: push hmake docker image
after:
- image
push:
- 'evocloud/hmake:latest'
- 'evocloud/hmake:1.1.0'
- 'evocloud/hmake:1.1'
- 'evocloud/hmake:1'
site:
description: generate document site
after:
- builder
watches:
- site/gh-pages
- '!site/gh-pages/public'
- build.sh
cmds:
- ./build.sh gensite
checkfmt:
description: check code format
after:
- builder
always: true
cmds:
- ./build.sh checkfmt
lint:
description: check code using metalint
after:
- builder
always: true
cmds:
- ./build.sh lint
check:
description: check source code
after:
- checkfmt
- lint
test:
description: run tests
after:
- vendor
always: true
cmds:
- ginkgo ./test
cover:
description: run tests with coverage
after:
- vendor
always: true
cmds:
- >
go test -coverprofile cover.out
-coverpkg ./project
./test
e2e:
description: end-to-end tests
after:
- vendor
expose-docker: true
always: true
cmds:
- ginkgo ./test/e2e
all:
description: the default make target
after:
- 'hmake-*'
settings:
default-targets:
- all
exec-target: vendor
exec-shell: /bin/bash
docker:
image: hmake-builder:latest
src-volume: /go/src/github.com/evo-cloud/hmake