Define constants/ci?
Create a top-level flag encoding whether or not Emacs is running in CI.
This commit is contained in:
parent
711820411c
commit
453596adb2
1 changed files with 5 additions and 0 deletions
|
@ -12,6 +12,7 @@
|
||||||
|
|
||||||
(require 'prelude)
|
(require 'prelude)
|
||||||
(require 'f)
|
(require 'f)
|
||||||
|
(require 'maybe)
|
||||||
|
|
||||||
(prelude/assert (f-exists? (getenv "BRIEFCASE")))
|
(prelude/assert (f-exists? (getenv "BRIEFCASE")))
|
||||||
|
|
||||||
|
@ -19,6 +20,10 @@
|
||||||
;; Configuration
|
;; Configuration
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
|
|
||||||
|
(defconst constants/ci?
|
||||||
|
(maybe/some? (getenv "CI"))
|
||||||
|
"True when Emacs is running in CI.")
|
||||||
|
|
||||||
(defconst constants/briefcase
|
(defconst constants/briefcase
|
||||||
(getenv "BRIEFCASE")
|
(getenv "BRIEFCASE")
|
||||||
"Path to my monorepo, which various parts of my configuration rely on.")
|
"Path to my monorepo, which various parts of my configuration rely on.")
|
||||||
|
|
Loading…
Reference in a new issue