@@ -5,43 +5,138 @@ weight: 400
55
66{{< toc >}}
77
8+ [ ![ Windows] ( https://img.shields.io/badge/-Windows-lightblue?logo=windows&style=flat&logoColor=blue )] ( # )
9+ [ ![ macOS] ( https://img.shields.io/badge/-macOS-lightgrey?logo=apple&style=flat&logoColor=white )] ( # )
10+ [ ![ Linux] ( https://img.shields.io/badge/-Linux-fcc624?logo=linux&style=flat&logoColor=black )] ( # )
11+
812Example to use [ Circle CI] ( https://circleci.com/ ) .
913
1014``` yml
15+ version : 2.1
16+
17+ orbs :
18+ 19+
1120# Default actions to perform on each Emacs version
12- default : &default-steps
13- steps :
14- - checkout
15- - run : apt-get update && apt-get install -y git
16- - run : |
17- eask package
18- eask install
19- eask compile
20-
21- # Enumerated list of Emacs versions
21+ commands :
22+ setup-linux :
23+ steps :
24+ - checkout
25+ - run :
26+ name : Install unzip
27+ command : apt-get update && apt-get install unzip
28+ - run :
29+ name : Install Eask
30+ command : curl -fsSL https://raw.githubusercontent.com/emacs-eask/cli/master/webinstall/install.sh | sh
31+
32+ setup-macos :
33+ steps :
34+ - checkout
35+ - run :
36+ name : Install Emacs latest
37+ command : |
38+ echo "HOMEBREW_NO_AUTO_UPDATE=1" >> $BASH_ENV
39+ brew install homebrew/cask/emacs
40+ - run :
41+ name : Install unzip
42+ command : apt-get update && apt-get install unzip
43+ - run :
44+ name : Install Eask
45+ command : curl -fsSL https://raw.githubusercontent.com/emacs-eask/cli/master/webinstall/install.sh | sh
46+
47+ setup-windows :
48+ steps :
49+ - checkout
50+ - run :
51+ name : Install Eask
52+ command : url.exe -fsSL https://raw.githubusercontent.com/emacs-eask/cli/master/webinstall/install.bat | cmd /Q
53+
54+ test :
55+ steps :
56+ - run :
57+ name : Run regression tests
58+ command : eldev -dtT -p test
59+ lint :
60+ steps :
61+ - run :
62+ name : Run Elisp-lint
63+ command : eldev lint
64+ - run :
65+ name : Byte-compile `.el' files
66+ command : eldev -dtT compile --warnings-as-errors
67+
2268jobs :
23- test-emacs-26 :
69+ test-ubuntu-emacs-26 :
70+ docker :
71+ - image : silex/emacs:26-ci
72+ entrypoint : bash
73+ steps :
74+ - setup-linux
75+ - test
76+
77+ test-ubuntu-emacs-27 :
78+ docker :
79+ - image : silex/emacs:27-ci
80+ entrypoint : bash
81+ steps :
82+ - setup-linux
83+ - test
84+
85+ test-ubuntu-emacs-28 :
2486 docker :
25- - image : silex/emacs:26.2
87+ - image : silex/emacs:28-ci
2688 entrypoint : bash
27- << : *default-steps
89+ steps :
90+ - setup-linux
91+ - test
2892
29- test-emacs-master :
93+ test-ubuntu- emacs-master :
3094 docker :
31- - image : silex/emacs:master
95+ - image : silex/emacs:master-ci
3296 entrypoint : bash
33- << : *default-steps
97+ steps :
98+ - setup-linux
99+ - test
100+
101+ test-macos-emacs-latest :
102+ macos :
103+ xcode : " 14.0.0"
104+ steps :
105+ - setup-macos
106+ - test
107+
108+ test-windows-emacs-latest :
109+ executor : win/default
110+ steps :
111+ - run :
112+ name : Install Emacs latest
113+ command : |
114+ choco install emacs
115+ - setup-windows
116+ - test
34117
35- # Executing in parallel
36118workflows :
37119 version : 2
38120 ci-test-matrix :
39121 jobs :
40- - test-emacs-26
41- - test-emacs-master
122+ - test-ubuntu-emacs-26
123+ - test-ubuntu-emacs-27
124+ - test-ubuntu-emacs-28
125+ - test-ubuntu-emacs-master
126+ - test-macos-emacs-latest
127+ - test-windows-emacs-latest
42128` ` `
43129
44130This example is testing your Emacs Lisp package in the below environment;
45131
46- * Emacs: ` 26.2` and `snapshot`
47- * Eask: `snapshot` (latest)
132+ | OS | Emacs | Eask |
133+ |----------------|------------------------------------|--------|
134+ | Linux (Ubuntu) | ` 26.x`, `27.x`, `28.x`, `snapshot` | latest |
135+ | macOS | `snapshot` | latest |
136+ | Windows | `snapshot` | latest |
137+
138+ {{< hint info >}}
139+ 💡 You can generate workflow file via `eask generate workflow circle-ci`, see
140+ [Commands and options](https://emacs-eask.github.io/Getting-Started/Commands-and-options/#-eask-generate-workflow-circle-ci)
141+ for more information!
142+ {{< /hint >}}
0 commit comments