-
Notifications
You must be signed in to change notification settings - Fork 2
/
HyperMake
103 lines (90 loc) · 2.11 KB
/
HyperMake
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
---
format: hypermake.v0
name: cloudrt
description: Cloud Runtime
targets:
toolchain:
description: build the docker image including toolchain
watches:
- hack/toolchain
build: hack/toolchain
vendor:
description: pull all vendor packages
after:
- toolchain
watches:
- 'vendor/manifest'
cmds:
- gvt restore
build-linux-amd64:
description: binaries for Linux AMD64
after:
- vendor
watches:
- '**/**/*.go'
- hack/build.sh
cmds:
- hack/build.sh linux amd64
build-darwin-amd64:
description: binaries for Mac OS
after:
- vendor
watches:
- '**/**/*.go'
- hack/build.sh
cmds:
- hack/build.sh darwin amd64
build-windows-amd64:
description: binaries for Windows
after:
- vendor
watches:
- '**/**/*.go'
- hack/build.sh
cmds:
- hack/build.sh windows amd64
checkfmt:
description: check code format
after:
- toolchain
always: true
cmds:
- hack/build.sh checkfmt
lint:
description: check code using metalint
after:
- toolchain
always: true
cmds:
- hack/build.sh lint
check:
description: check source code
after:
- checkfmt
- lint
test:
description: run tests
after:
- vendor
always: true
cmds:
- go test ./jobs
cover:
description: run tests with coverage
after:
- vendor
always: true
cmds:
- go test -coverprofile cover.out
-coverpkg ./jobs
./jobs
build:
description: build binaries
after:
- 'build-*'
settings:
default-targets:
- build
docker:
image: cloudrt-builder:latest
src-volume: /go/src/github.com/evo-cloud/cloudrt