Skip to content

Commit 5bb6d98

Browse files
ikappakibbatsov
authored andcommitted
Add emacs-28.1 to CI
1 parent 9bc6a18 commit 5bb6d98

File tree

3 files changed

+32
-12
lines changed

3 files changed

+32
-12
lines changed

.circleci/config.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,14 @@ jobs:
5858
- setup
5959
- test
6060

61+
test-emacs-28:
62+
docker:
63+
- image: silex/emacs:28-dev
64+
entrypoint: bash
65+
steps:
66+
- setup
67+
- test
68+
6169
test-emacs-master:
6270
docker:
6371
- image: silex/emacs:master-dev
@@ -78,7 +86,7 @@ jobs:
7886

7987
test-lint:
8088
docker:
81-
- image: silex/emacs:27-dev
89+
- image: silex/emacs:28-dev
8290
steps:
8391
- setup
8492
- lint
@@ -89,6 +97,7 @@ workflows:
8997
jobs:
9098
- test-emacs-26
9199
- test-emacs-27
100+
- test-emacs-28
92101
- test-emacs-master
93102
- test-lint
94103
- test-windows-emacs-latest

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
strategy:
1010
matrix:
1111
os: [macos-latest]
12-
emacs_version: ['26.3', '27.2']
12+
emacs_version: ['26.3', '27.2', '28.1']
1313

1414
steps:
1515
- name: Set up Emacs
@@ -18,7 +18,7 @@ jobs:
1818
version: ${{matrix.emacs_version}}
1919

2020
- name: Install Eldev
21-
run: curl -fsSL https://raw.githubusercontent.com/doublep/eldev/0.10.3/webinstall/github-eldev | sh
21+
run: curl -fsSL https://raw.github.com/doublep/eldev/master/webinstall/github-eldev | sh
2222

2323
- name: Check out the source code
2424
uses: actions/checkout@v2

test/cider-repl-tests.el

Lines changed: 20 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,17 @@
9797
(ansi-color-map (ansi-color-make-color-map)))
9898
,@body))
9999

100+
(defmacro text-property-make (foreground-color &optional style)
101+
"Return FOREGROUND-COLOR and STYLE as a text property list."
102+
(if (< emacs-major-version 28)
103+
(if style
104+
`(quote ((foreground-color . ,foreground-color) ,style))
105+
`(quote (foreground-color . ,foreground-color)))
106+
(if style
107+
`(quote (,(intern (concat "ansi-color-" (symbol-name style)))
108+
(:foreground ,foreground-color)))
109+
`(quote (:foreground ,foreground-color)))))
110+
100111
(describe "multiple calls to cider-repl--emit-output"
101112
(it "Multiple emit output calls set properties and emit text"
102113
(with-temp-buffer
@@ -136,25 +147,25 @@
136147
(expect (buffer-substring-no-properties (point-min) (point-max))
137148
:to-equal "a\nb\nc\nd\ne\nf\ng\nh\ni\nj\n")
138149
(expect (get-text-property 1 'font-lock-face)
139-
:to-equal '(foreground-color . "black"))
150+
:to-equal (text-property-make "black"))
140151
(expect (get-text-property 3 'font-lock-face)
141152
:to-equal 'cider-repl-stdout-face)
142153
(expect (get-text-property 5 'font-lock-face)
143-
:to-equal '(foreground-color . "red3"))
154+
:to-equal (text-property-make "red3"))
144155
(expect (get-text-property 7 'font-lock-face)
145-
:to-equal '(foreground-color . "green3"))
156+
:to-equal (text-property-make "green3"))
146157
(expect (get-text-property 9 'font-lock-face)
147-
:to-equal '(foreground-color . "yellow3"))
158+
:to-equal (text-property-make "yellow3"))
148159
(expect (get-text-property 11 'font-lock-face)
149-
:to-equal '(foreground-color . "red3"))
160+
:to-equal (text-property-make "red3"))
150161
(expect (get-text-property 13 'font-lock-face)
151-
:to-equal '(foreground-color . "green3"))
162+
:to-equal (text-property-make "green3"))
152163
(expect (get-text-property 15 'font-lock-face)
153-
:to-equal '((foreground-color . "yellow3") bold))
164+
:to-equal (text-property-make "yellow3" bold))
154165
(expect (get-text-property 17 'font-lock-face)
155-
:to-equal '(foreground-color . "red3"))
166+
:to-equal (text-property-make "red3"))
156167
(expect (get-text-property 19 'font-lock-face)
157-
:to-equal '((foreground-color . "green3") italic))
168+
:to-equal (text-property-make "green3" italic))
158169
))))
159170

160171
(defun simulate-cider-output (s property)

0 commit comments

Comments
 (0)