Skip to content

Commit c40b94c

Browse files
committed
ADD org-x to github workflow
1 parent d5fdd1f commit c40b94c

File tree

3 files changed

+25
-108
lines changed

3 files changed

+25
-108
lines changed

.github/workflows/test.yml

+9-1
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,13 @@ jobs:
2929
3030
- name: Verify dependencies
3131
run: |
32-
emacs -batch -l "~/.emacs.d/init.el" --eval '(assert (nd/verify-required-packages))'
32+
emacs -batch -l ~/.emacs.d/init.el --eval '(assert (nd/verify-required-packages))'
33+
34+
- name: Test org-x
35+
run: >
36+
emacs -batch
37+
-l ~/.emacs.d/init.el
38+
-l ~/.emacs.d/local/lib/org-x/test/org-x-test.el
39+
-f buttercup-run
40+
3341

local/lib/org-x/test/org-x-test-common.el

-106
This file was deleted.

local/lib/org-x/test/org-x-test-buffer-state.el renamed to local/lib/org-x/test/org-x-test.el

+16-1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,22 @@
2323
(require 'dash)
2424
(require 'org-x)
2525

26+
(defmacro org-ml--with-org-env (&rest body)
27+
"Execute BODY in a standardized Org-mode buffer."
28+
`(let ((org-tags-column 20)
29+
(org-todo-keywords
30+
;; shamelessly copies from me
31+
'((sequence "TODO(t/!)" "NEXT(n/!)" "|" "DONE(d/!)")
32+
(sequence "WAIT(w@/!)" "HOLD(h@/!)" "|" "CANC(c@/!)")))
33+
(org-archive-tag "ARCHIVE")
34+
(org-lowest-priority ?C)
35+
(org-highest-priority ?A)
36+
(org-list-allow-alphabetical nil)
37+
(org-log-into-drawer "LOGBOOK"))
38+
(with-temp-buffer
39+
(org-mode)
40+
,@body)))
41+
2642
(defun org-ts-to-unixtime (timestamp-string)
2743
"Convert TIMESTAMP-STRING to unixtime."
2844
(let ((decoded (org-parse-time-string timestamp-string)))
@@ -70,7 +86,6 @@ Forms are denoted like %(FORM)%."
7086
(s-join "\n")
7187
(org-x-test-parse-forms))
7288
result)))
73-
(print result*)
7489
`(it ,title
7590
(expect (org-ml--with-org-buffer ,buffer ,test)
7691
:to-equal

0 commit comments

Comments
 (0)