From 2ab1e670b21b01dfd4f3e5997ce4290dd73268c6 Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Tue, 2 Sep 2025 18:05:03 +0100 Subject: Set CI environment variable when building Guix package. --- .guix/pyhegp-package.scm | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.guix/pyhegp-package.scm b/.guix/pyhegp-package.scm index e468564..20231cd 100644 --- a/.guix/pyhegp-package.scm +++ b/.guix/pyhegp-package.scm @@ -46,6 +46,15 @@ #:select? (or (git-predicate (dirname (current-source-directory))) (const #t)))) (build-system pyproject-build-system) + (arguments + (list #:phases + #~(modify-phases %standard-phases + ;; When the CI environment variable is set to any + ;; value, hypothesis switches to using its built-in CI + ;; profile. + (add-before 'check 'set-ci-environment + (lambda _ + (setenv "CI" "running-on-ci")))))) (inputs (list python-click python-numpy -- cgit 1.4.1