aboutsummaryrefslogtreecommitdiff
path: root/.cirrus.yml
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2021-03-25 11:14:35 +0100
committerMarcoFalke <falke.marco@gmail.com>2021-04-09 15:56:23 +0200
commitfa278412a023ac150da764a465567f2970348449 (patch)
tree03613d5c76c98f6419b618ce2dabc17dcaa792ae /.cirrus.yml
parentfad4f48e0763d111369656dea9575a789d2016e8 (diff)
downloadbitcoin-fa278412a023ac150da764a465567f2970348449.tar.xz
ci: Restart docker before run
Also, add setting for persistent worker in .cirrus.yml
Diffstat (limited to '.cirrus.yml')
-rw-r--r--.cirrus.yml6
1 files changed, 6 insertions, 0 deletions
diff --git a/.cirrus.yml b/.cirrus.yml
index d9e68e263a..aafe4c9241 100644
--- a/.cirrus.yml
+++ b/.cirrus.yml
@@ -10,6 +10,12 @@ env:
cirrus_ephemeral_worker_template_env: &CIRRUS_EPHEMERAL_WORKER_TEMPLATE_ENV
DANGER_RUN_CI_ON_HOST: "1" # Containers will be discarded after the run, so there is no risk that the ci scripts modify the system
+persistent_worker_template_env: &PERSISTENT_WORKER_TEMPLATE_ENV
+ RESTART_CI_DOCKER_BEFORE_RUN: "1"
+
+persistent_worker_template: &PERSISTENT_WORKER_TEMPLATE
+ persistent_worker: {} # https://cirrus-ci.org/guide/persistent-workers/
+
# https://cirrus-ci.org/guide/tips-and-tricks/#sharing-configuration-between-tasks
base_template: &BASE_TEMPLATE
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