Skip to content

Commit 4045a67

Browse files
committed
ci: Use cpu=1 for linter
1 parent 739d390 commit 4045a67

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

.cirrus.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,5 @@
11
### Global defaults
22

3-
timeout_in: 120m # https://cirrus-ci.org/faq/#instance-timed-out
4-
container:
5-
# https://cirrus-ci.org/faq/#are-there-any-limits
6-
# Each project has 16 CPU in total, assign 2 to each container, so that 8 tasks run in parallel
7-
cpu: 2
8-
memory: 8G # Set to 8GB to avoid OOM. https://cirrus-ci.org/guide/linux/#linux-containers
9-
kvm: true # Use kvm to avoid spurious CI failures in the default virtualization cluster, see https://github.com/bitcoin/bitcoin/issues/20093
103
env:
114
PACKAGE_MANAGER_INSTALL: "apt-get update && apt-get install -y"
125
MAKEJOBS: "-j4"
@@ -30,6 +23,13 @@ base_template: &BASE_TEMPLATE
3023
### Global task template
3124
global_task_template: &GLOBAL_TASK_TEMPLATE
3225
<< : *BASE_TEMPLATE
26+
timeout_in: 120m # https://cirrus-ci.org/faq/#instance-timed-out
27+
container:
28+
# https://cirrus-ci.org/faq/#are-there-any-limits
29+
# Each project has 16 CPU in total, assign 2 to each container, so that 8 tasks run in parallel
30+
cpu: 2
31+
memory: 8G # Set to 8GB to avoid OOM. https://cirrus-ci.org/guide/linux/#linux-containers
32+
kvm: true # Use kvm to avoid spurious CI failures in the default virtualization cluster, see https://github.com/bitcoin/bitcoin/issues/20093
3333
ccache_cache:
3434
folder: "/tmp/ccache_dir"
3535
depends_built_cache:
@@ -62,6 +62,7 @@ task:
6262
<< : *BASE_TEMPLATE
6363
container:
6464
image: ubuntu:bionic # For python 3.6, oldest supported version according to doc/dependencies.md
65+
cpu: 1 # Cut bill in half for linting
6566
# For faster CI feedback, immediately schedule the linters. https://cirrus-ci.org/pricing/#compute-credits
6667
use_compute_credits: $CIRRUS_REPO_FULL_NAME == 'bitcoin/bitcoin'
6768
setup_script:

0 commit comments

Comments
 (0)