about summary refs log tree commit diff
diff options
context:
space:
mode:
authorArun Isaac2025-09-02 18:05:03 +0100
committerArun Isaac2025-09-02 22:32:03 +0100
commit2ab1e670b21b01dfd4f3e5997ce4290dd73268c6 (patch)
treebe22af4b843b67d3340833e4729e0af4e39e387c
parenta64055f237800b4e1427f566ebdb6c3875f1b3ac (diff)
downloadpyhegp-2ab1e670b21b01dfd4f3e5997ce4290dd73268c6.tar.gz
pyhegp-2ab1e670b21b01dfd4f3e5997ce4290dd73268c6.tar.lz
pyhegp-2ab1e670b21b01dfd4f3e5997ce4290dd73268c6.zip
Set CI environment variable when building Guix package.
-rw-r--r--.guix/pyhegp-package.scm9
1 files changed, 9 insertions, 0 deletions
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