diff options
| author | Preston Pan <ret2pop@nullring.xyz> | 2026-03-14 11:56:02 -0700 |
|---|---|---|
| committer | Preston Pan <ret2pop@nullring.xyz> | 2026-03-14 11:56:02 -0700 |
| commit | 1f04e4d007d7fd56d997e2148b7d01db444f0495 (patch) | |
| tree | 75a7deaf92d50eb28359893ecdf15d496974e683 /tests | |
| parent | 429f7718aee4e6cab23527a481fe25f801a621aa (diff) | |
remove headers
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/ci-build-stage-two.el | 47 | ||||
| -rw-r--r-- | tests/ci-build.el | 43 | ||||
| -rw-r--r-- | tests/ci-runner.el | 9 |
3 files changed, 99 insertions, 0 deletions
diff --git a/tests/ci-build-stage-two.el b/tests/ci-build-stage-two.el new file mode 100644 index 0000000..3ab5c91 --- /dev/null +++ b/tests/ci-build-stage-two.el @@ -0,0 +1,47 @@ +(princ "STEP 2: init.el.\n" (quote external-debugging-output)) + +(setq org-id-track-globally t) + +(princ "STEP 3: after org roam\n" (quote external-debugging-output)) + +(setq term-file-prefix nil) + +(princ "STEP 4: after org roam\n" (quote external-debugging-output)) + +(force-mode-line-update) + +(setq org-html-link-use-abs-url nil) +(setq default-directory (expand-file-name "~/monorepo")) +(setq org-html-link-use-abs-url nil) +(setq org-html-link-org-files-as-html t) + +(require (quote htmlize)) +(require (quote nix-mode)) + +(setq org-html-htmlize-output-type (quote css)) + +(princ "STEP 5: before catppuccin\n" (quote external-debugging-output)) + +(require 'catppuccin-theme) +(setq catppuccin-flavor 'mocha) +(load-theme 'catppuccin t) + +(defun my-ci-force-fontification () + "Ensure the buffer is fully colorized before htmlize touches it." + (font-lock-ensure) + (font-lock-flush) + (font-lock-ensure)) + +(add-hook 'org-publish-before-export-hook #'my-ci-force-fontification) + +(face-spec-recalc 'default (selected-frame)) +(when (fboundp 'redisplay) (redisplay t)) + +(princ (format "THEME CHECK - Default background: %s\n" + (face-attribute 'default :background)) + 'external-debugging-output) + +(princ "STEP 6: before publish-all\n" (quote external-debugging-output)) + +(org-publish-all t) +(org-publish-all nil) diff --git a/tests/ci-build.el b/tests/ci-build.el new file mode 100644 index 0000000..f72eb02 --- /dev/null +++ b/tests/ci-build.el @@ -0,0 +1,43 @@ +(setq inhibit-startup-screen t) +(setq inhibit-startup-message t) +(setq enable-local-variables :all) + +(defalias (quote yes-or-no-p) (lambda (&rest args) t)) +(defalias (quote y-or-n-p) (lambda (&rest args) t)) + +(setq message-log-max t) +(setq standard-output (quote external-debugging-output)) + +(princ "STEP 0: tf\n" (quote external-debugging-output)) + +(setq noninteractive t) +(setq system-email "lol@troll.com") +(setq system-username "ci-runner") +(setq system-fullname "Preston Pan") +(setq system-gpgkey "00000000") +(defun package-vc-install (&rest args) (message "blocked package-vc-install for %s" args)) +(defun package-vc--unpack (&rest args) nil) +(setq package-archives nil) +(setq use-package-always-ensure nil) +(setq package-vc-selected-packages nil) + +(defalias (quote scroll-bar-mode) (quote ignore)) +(defalias (quote tool-bar-mode) (quote ignore)) +(defalias (quote menu-bar-mode) (quote ignore)) + +(provide (quote lean4-mode)) +(provide (quote irony-mode)) +(provide (quote irony)) +(defalias (quote irony-cdb-autosetup-compile-options) (quote ignore)) + +(setq org-latex-pdf-process '("xelatex -shell-escape -interaction nonstopmode %f")) +(setq org-startup-with-latex-preview nil) +(setq org-startup-indented nil) +(setq org-export-with-latex t) +(setq org-confirm-babel-evaluate nil) +(setq load-prefer-newer t) +(setq gc-cons-threshold 100000000) +(setq vc-handled-backends nil) +(setq make-backup-files nil auto-save-default nil create-lockfiles nil) + +(princ "STEP 1: init.el?\n" (quote external-debugging-output)) diff --git a/tests/ci-runner.el b/tests/ci-runner.el new file mode 100644 index 0000000..5b3397f --- /dev/null +++ b/tests/ci-runner.el @@ -0,0 +1,9 @@ +(condition-case err + (progn + (load-file (expand-file-name "tests/ci-build.el" default-directory)) + (load-file (expand-file-name "init.el" (getenv "NIXMACS_DIR"))) + (load-file (expand-file-name "tests/ci-build-stage-two.el" default-directory)) + (kill-emacs 0)) + (error + (princ (format "\nFATAL CI ERROR: %s\n" (error-message-string err)) 'external-debugging-output) + (kill-emacs 1))) |
