forked from u-root/u-root
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.yml
77 lines (70 loc) · 1.81 KB
/
config.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
version: 2
templates:
golang-template:
&golang-template
docker:
- image: cimg/go:1.21
working_directory: /home/circleci/go/src/github.com/u-root/u-root
environment:
- UROOT_SOURCE: /home/circleci/go/src/github.com/u-root/u-root
- CGO_ENABLED: 0
# x7 all timeouts for QEMU VM tests since they run without KVM.
- UROOT_QEMU_TIMEOUT_X: 7
beefy-template:
&beefy-template
<<: *golang-template
resource_class: large
workflows:
version: 2
build_and_test:
jobs:
- race
- compile_cmds
- check_templates
- check_licenses
jobs:
race:
<<: *beefy-template
environment:
- UROOT_SOURCE: /home/circleci/go/src/github.com/u-root/u-root
- CGO_ENABLED: 1
steps:
- checkout
- run:
name: Race detector
command: go test -race -timeout=15m -p=1 -failfast ./cmds/... ./pkg/...
compile_cmds:
<<: *golang-template
steps:
- checkout
- run:
name: build all tools
command: |
cd cmds
go install -a ./...
cd ../tools
go install -a ./...
check_licenses:
<<: *golang-template
steps:
- checkout
- run:
name: Check licenses
command: go run tools/checklicenses/checklicenses.go -c
tools/checklicenses/config.json
check_templates:
<<: *golang-template
steps:
- checkout
- run:
name: Ensure that every template builds for a variety of options.
command: |
go build .
goruncmd="./u-root"
$goruncmd minimal
$goruncmd core
$goruncmd coreboot-app
$goruncmd all
$goruncmd world
$goruncmd all core
GOOS=plan9 $goruncmd -defaultsh=/bbin/rush plan9