-
Notifications
You must be signed in to change notification settings - Fork 70
/
HyperMake
109 lines (96 loc) · 2.03 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
104
105
106
107
108
109
---
format: hypermake.v0
name: truechain
description: truechain
targets:
rebuild-toolchain:
description: build toolchain image
watches:
- support/toolchain/
build: support/toolchain/
cache: false
toolchain:
description: toolchain dependencies
deps:
description: populate deps packages
after:
- toolchain
workdir: trueconsensus
watches:
- trueconsensus/vendor/manifest
cmds:
- gvt restore
build-darwin:
description: build Go source code for darwin
after:
- deps
watches:
- src/**/**/*.go
- support/scripts/build.sh
cmds:
- ./support/scripts/build.sh darwin
artifacts:
- bin/darwin/truechain-engine
build-linux:
description: build Go source code for linux
after:
- deps
watches:
- trueconsensus/**/*.go
- support/scripts/build.sh
cmds:
- ./support/scripts/build.sh linux
artifacts:
- bin/linux/truechain-engine
build:
description: build binaries
after:
- 'build-*'
checkfmt:
description: check code format
after:
- toolchain
watches:
- support/scripts/check.sh
always: true
cmds:
- ./support/scripts/check.sh fmt
lint:
description: check code using metalint
after:
- toolchain
watches:
- support/scripts/check.sh
always: true
cmds:
- ./support/scripts/check.sh lint
check:
description: check source code
after:
- checkfmt
- lint
# sort usage of sudo in HyperMake or else, use ansible
# install:
# description: install the configs
# after:
# - build-linux
# watches:
# - support/scripts/build.sh
# - config/*
# cmds:
# - ./support/scripts/install.sh linux
test:
description: run tests
after:
- build
always: true
cmds:
- ./support/scripts/test.sh
settings:
default-targets:
- build
- check
exec-target: deps
exec-shell: /bin/bash
docker:
image: 'truechain/toolchain:0.1'