8
8
CCACHE_SIZE : " 200M"
9
9
CCACHE_DIR : " /tmp/ccache_dir"
10
10
11
- # ## Base template
12
11
# https://cirrus-ci.org/guide/tips-and-tricks/#sharing-configuration-between-tasks
13
12
base_template : &BASE_TEMPLATE
14
- skip : $CIRRUS_REPO_FULL_NAME == "bitcoin-core/gui" && $CIRRUS_PR == "" # No need to run on the read-only mirror, unless it is a PR. https://cirrus-ci.org/guide/writing-tasks/#conditional-task-execution
13
+ skip : $CIRRUS_REPO_FULL_NAME == "bitcoin-core/gui" && $CIRRUS_PR == "" # No need to run on the read-only mirror, unless it is a PR. https://cirrus-ci.org/guide/writing-tasks/#conditional-task-execution
15
14
merge_base_script :
16
15
- if [ "$CIRRUS_PR" = "" ]; then exit 0; fi
17
16
- bash -c "$PACKAGE_MANAGER_INSTALL git"
18
17
- git fetch $CIRRUS_REPO_CLONE_URL $CIRRUS_BASE_BRANCH
19
18
-
git config --global user.email "[email protected] "
20
19
- git config --global user.name "ci"
21
20
- git merge FETCH_HEAD # Merge base to detect silent merge conflicts
21
+ stateful : false # https://cirrus-ci.org/guide/writing-tasks/#stateful-tasks
22
22
23
- # ## Global task template
24
23
global_task_template : &GLOBAL_TASK_TEMPLATE
25
24
<< : *BASE_TEMPLATE
26
25
timeout_in : 120m # https://cirrus-ci.org/faq/#instance-timed-out
@@ -41,6 +40,11 @@ global_task_template: &GLOBAL_TASK_TEMPLATE
41
40
ci_script :
42
41
- ./ci/test_run_all.sh
43
42
43
+ compute_credits_template : &CREDITS_TEMPLATE
44
+ # https://cirrus-ci.org/pricing/#compute-credits
45
+ # Only use credits for pull requests to the main repo
46
+ use_compute_credits : $CIRRUS_REPO_FULL_NAME == 'bitcoin/bitcoin' && $CIRRUS_PR != ""
47
+
44
48
# task:
45
49
# name: "Windows"
46
50
# windows_container:
@@ -58,13 +62,14 @@ global_task_template: &GLOBAL_TASK_TEMPLATE
58
62
# - choco install python --version=3.7.7 -y
59
63
60
64
task :
61
- name : ' lint'
65
+ name : ' lint [bionic] '
62
66
<< : *BASE_TEMPLATE
63
67
container :
64
- image : ubuntu:bionic # For python 3.6, oldest supported version according to doc/dependencies.md
65
- cpu : 1 # Cut bill in half for linting
66
- # For faster CI feedback, immediately schedule the linters. https://cirrus-ci.org/pricing/#compute-credits
67
- use_compute_credits : $CIRRUS_REPO_FULL_NAME == 'bitcoin/bitcoin'
68
+ image : ubuntu:bionic # For python 3.6, oldest supported version according to doc/dependencies.md
69
+ cpu : 1
70
+ memory : 1G
71
+ # For faster CI feedback, immediately schedule the linters
72
+ << : *CREDITS_TEMPLATE
68
73
setup_script :
69
74
- set -o errexit; source ./ci/test/00_setup_env.sh
70
75
before_install_script :
@@ -103,8 +108,8 @@ task:
103
108
104
109
task :
105
110
name : ' [previous releases, uses qt5 dev package and some depends packages] [unsigned char] [bionic]'
106
- # For faster CI feedback, immediately schedule a task that compiles most modules. https://cirrus-ci.org/pricing/#compute-credits
107
- use_compute_credits : $CIRRUS_REPO_FULL_NAME == 'bitcoin/bitcoin'
111
+ # For faster CI feedback, immediately schedule a task that compiles most modules
112
+ << : *CREDITS_TEMPLATE
108
113
<< : *GLOBAL_TASK_TEMPLATE
109
114
container :
110
115
image : ubuntu:bionic
0 commit comments