Skip to content

Commit

Permalink
refactor: remove CI specific code
Browse files Browse the repository at this point in the history
  • Loading branch information
abougouffa committed Oct 22, 2023
1 parent 30cc7a2 commit e1286b3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
8 changes: 2 additions & 6 deletions core/me-vars.el
Original file line number Diff line number Diff line change
Expand Up @@ -57,20 +57,16 @@ This list is automatically constructed from the environment variables
"~/.minemacs.d/"))
"MinEmacs user customization directory.")

(defconst minemacs-ci
(and (getenv "MINEMACS_CI") t)
"Load all packages immediately, useful for CI.")

(defconst minemacs-debug
(and (or (getenv "MINEMACS_DEBUG") init-file-debug minemacs-ci) t)
(and (or (getenv "MINEMACS_DEBUG") init-file-debug) t)
"MinEmacs is started in debug mode.")

(defconst minemacs-verbose
(and (or (getenv "MINEMACS_VERBOSE") minemacs-debug) t)
"MinEmacs is started in verbose mode.")

(defconst minemacs-not-lazy
(or (daemonp) minemacs-ci (and (getenv "MINEMACS_NOT_LAZY") t))
(or (daemonp) (and (getenv "MINEMACS_NOT_LAZY") t))
"Load lazy packages (minemacs-lazy-hook) immediately.")

(defcustom minemacs-msg-level
Expand Down
3 changes: 0 additions & 3 deletions init.el
Original file line number Diff line number Diff line change
Expand Up @@ -269,9 +269,6 @@
(+info! "Trying to clean MinEmacs' root directory")
(+shutup! (+minemacs-root-dir-cleanup)))

(when minemacs-ci
(+log! "Running MinEmacs in CI mode, loading all packages.")
(mapc #'require minemacs-configured-packages))

(+log! "Loaded init.el")

Expand Down

0 comments on commit e1286b3

Please sign in to comment.