Define constants/ci?

Create a top-level flag encoding whether or not Emacs is running in CI.
This commit is contained in:
William Carroll 2020-08-31 12:02:04 +01:00
parent 711820411c
commit 453596adb2

View file

@ -12,6 +12,7 @@
(require 'prelude)
(require 'f)
(require 'maybe)
(prelude/assert (f-exists? (getenv "BRIEFCASE")))
@ -19,6 +20,10 @@
;; Configuration
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(defconst constants/ci?
(maybe/some? (getenv "CI"))
"True when Emacs is running in CI.")
(defconst constants/briefcase
(getenv "BRIEFCASE")
"Path to my monorepo, which various parts of my configuration rely on.")