-
Notifications
You must be signed in to change notification settings - Fork 3
/
.cirrus.yml
117 lines (98 loc) · 2.65 KB
/
.cirrus.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
### Global defaults
env:
URL: https://github.com/dogecoin/dogecoin
BRANCH: 1.14.4-dev
PACKAGE_MANAGER_INSTALL: "apt-get update && apt-get install -y"
timeout_in: 120m # https://cirrus-ci.org/faq/#instance-timed-out
container:
# https://cirrus-ci.org/faq/#are-there-any-limits
# Each project has 16 CPU in total, assign 2 to each container, so that 8 tasks run in parallel
cpu: 2
memory: 2G # Set to 8GB to avoid OOM. https://cirrus-ci.org/guide/linux/#linux-containers
kvm: true # Use kvm to avoid spurious CI failures in the default virtualization cluster, see https://github.com/bitcoin/bitcoin/issues/20093
# https://cirrus-ci.org/guide/tips-and-tricks/#sharing-configuration-between-tasks
global_task_template: &GLOBAL_TASK_TEMPLATE
only_if: $CIRRUS_BRANCH !=~ 'build_.*'
init_script:
- ./init/init.sh --force
global_compute_template: &GLOBAL_COMPUTE_TEMPLATE
image_project: cirrus-images
image: family/docker-builder
platform: linux
cpu: 8
memory: 8G
setup_task_template: &SETUP_TASK_TEMPLATE
prescript:
- bash -c "$PACKAGE_MANAGER_INSTALL git"
init_script:
- ./init/init.sh --force
setup_script:
- ./gitian-build.sh --setup
build_task_template: &BUILD_TASK_TEMPLATE
only_if: $CIRRUS_BRANCH =~ 'build_.*'
<< : *SETUP_TASK_TEMPLATE
build_script:
- ./gitian-build.sh -j 8 -m 8192 -u $URL --commit -o $OS --build cirrus $BRANCH
test_task_template: &TEST_TASK_TEMPLATE
<< : *SETUP_TASK_TEMPLATE
test_script:
- ./gitian-build.sh -j 8 -m 8192 -u $URL --test --build
- ./gitian-build.sh -j 8 -m 8192 -u $URL --commit --test --build
task:
name: 'UBUNTU'
<< : *GLOBAL_TASK_TEMPLATE
container:
image: ubuntu:latest
task:
name: 'DEBIAN'
<< : *GLOBAL_TASK_TEMPLATE
container:
image: debian:latest
task:
name: 'CENTOS'
<< : *GLOBAL_TASK_TEMPLATE
container:
image: centos:latest
task:
name: 'FEDORA'
<< : *GLOBAL_TASK_TEMPLATE
container:
image: fedora:latest
task:
name: 'ARCHLINUX'
<< : *GLOBAL_TASK_TEMPLATE
container:
image: archlinux:latest
task:
name: 'BIGSUR'
<< : *GLOBAL_TASK_TEMPLATE
macos_instance:
image: big-sur-base
task:
name: 'BUILD LINUX'
<< : *BUILD_TASK_TEMPLATE
env:
OS: 'l'
compute_engine_instance:
<< : *GLOBAL_COMPUTE_TEMPLATE
task:
name: 'BUILD WINDOWS'
<< : *BUILD_TASK_TEMPLATE
env:
OS: 'w'
compute_engine_instance:
<<: *GLOBAL_COMPUTE_TEMPLATE
task:
name: 'BUILD MAC'
<< : *BUILD_TASK_TEMPLATE
env:
OS: 'x'
compute_engine_instance:
<<: *GLOBAL_COMPUTE_TEMPLATE
task:
name: 'TEST'
<< : *TEST_TASK_TEMPLATE
env:
OS: 'x'
compute_engine_instance:
<<: *GLOBAL_COMPUTE_TEMPLATE