Skip to content

Commit

Permalink
Run CI simulations with a clean setup by default
Browse files Browse the repository at this point in the history
Ref. eng/recordflux/RecordFlux#1827
  • Loading branch information
andrestt committed Dec 20, 2024
1 parent 5238768 commit 4596982
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ CHECK_VENV_FULL_SYNC ?=
# Engine for CI simulation. Supported values are podman and docker.
CONTAINER_ENGINE ?= podman
CI_CONTAINER ?= recordflux-ci
CI_SIM_CLEAN_SETUP ?= 1

# --- Dependencies ---

Expand Down Expand Up @@ -586,7 +587,9 @@ ci_sim_%: $(CI_SIM_VENV)
". /it/bin/ci-init-script" \
"export E3_CATHOD_CACHE_DIR=~/cathod-cache && mkdir -p \$$E3_CATHOD_CACHE_DIR" \
"export CI_PROJECT_DIR=~/RecordFlux"; \
$(CI_SIM_VENV)/bin/python tools/extract_ci_jobs.py $(MAKEFILE_DIR)/.gitlab-ci.yml --job $*; \
$(CI_SIM_VENV)/bin/python tools/extract_ci_jobs.py $(MAKEFILE_DIR)/.gitlab-ci.yml \
--var CLEAN_RECORDFLUX_SETUP=$(CI_SIM_CLEAN_SETUP) \
--job $*; \
} | $(CONTAINER_ENGINE) exec -i -u $(CI_USER) -w /home/$(CI_USER) $(CI_CONTAINER) bash

# --- Development tools ---
Expand Down

0 comments on commit 4596982

Please sign in to comment.