|
1 | 1 | version: 2.1
|
2 | 2 |
|
3 |
| -# Default actions to perform on each Emacs version |
4 |
| -default: &default-steps |
5 |
| - steps: |
6 |
| - - checkout |
7 |
| - - run: apt-get update && apt-get install make |
8 |
| - - run: make elpa |
9 |
| - - run: emacs --version |
10 |
| - - run: make test |
11 |
| - # Make sure to run test-checks before test-bytecomp, as test-bytecomp autogenerates |
12 |
| - # files which won't pass test-checks. |
13 |
| - - run: make test-checks |
14 |
| - - run: make test-bytecomp |
| 3 | +orbs: |
| 4 | + |
| 5 | + |
| 6 | +commands: |
| 7 | + setup: |
| 8 | + steps: |
| 9 | + - checkout |
| 10 | + - run: |
| 11 | + name: Install Eldev |
| 12 | + command: curl -fsSL https://raw.github.com/doublep/eldev/master/webinstall/circle-eldev > x.sh && source ./x.sh |
| 13 | + |
| 14 | + setup-macos: |
| 15 | + steps: |
| 16 | + - checkout |
| 17 | + - run: |
| 18 | + name: Install Emacs latest |
| 19 | + command: | |
| 20 | + brew install homebrew/cask/emacs |
| 21 | + - run: |
| 22 | + name: Install Eldev |
| 23 | + command: curl -fsSL https://raw.github.com/doublep/eldev/master/webinstall/circle-eldev > x.sh && source ./x.sh |
| 24 | + |
| 25 | + setup-windows: |
| 26 | + steps: |
| 27 | + - checkout |
| 28 | + - run: |
| 29 | + name: Install Eldev |
| 30 | + command: | |
| 31 | + # Remove expired DST Root CA X3 certificate. Workaround |
| 32 | + # for https://debbugs.gnu.org/cgi/bugreport.cgi?bug=51038 |
| 33 | + # bug on Emacs 27.2. |
| 34 | + gci cert:\LocalMachine\Root\DAC9024F54D8F6DF94935FB1732638CA6AD77C13 |
| 35 | + gci cert:\LocalMachine\Root\DAC9024F54D8F6DF94935FB1732638CA6AD77C13 | Remove-Item |
| 36 | + (iwr https://raw.github.com/doublep/eldev/master/webinstall/circle-eldev.ps1).Content | powershell -command - |
| 37 | + test: |
| 38 | + steps: |
| 39 | + - run: |
| 40 | + name: Run regression tests |
| 41 | + command: eldev -dtT -p test |
| 42 | + lint: |
| 43 | + steps: |
| 44 | + - run: |
| 45 | + name: Lint |
| 46 | + command: eldev lint -c |
| 47 | + compile: |
| 48 | + steps: |
| 49 | + - run: |
| 50 | + name: Check for byte-compilation errors |
| 51 | + command: eldev -dtT compile --warnings-as-errors |
15 | 52 |
|
16 |
| -# Enumerated list of Emacs versions |
17 | 53 | jobs:
|
18 |
| - test-emacs-25: |
| 54 | + test-ubuntu-emacs-26: |
19 | 55 | docker:
|
20 |
| - - image: silex/emacs:25-ci-cask |
| 56 | + - image: silex/emacs:26-ci |
21 | 57 | entrypoint: bash
|
22 |
| - <<: *default-steps |
23 |
| - |
24 |
| - test-emacs-26: |
| 58 | + steps: |
| 59 | + - setup |
| 60 | + - test |
| 61 | + - lint |
| 62 | + - compile |
| 63 | + test-ubuntu-emacs-27: |
25 | 64 | docker:
|
26 |
| - - image: silex/emacs:26-ci-cask |
| 65 | + - image: silex/emacs:27-ci |
27 | 66 | entrypoint: bash
|
28 |
| - <<: *default-steps |
29 |
| - |
30 |
| - test-emacs-27: |
| 67 | + steps: |
| 68 | + - setup |
| 69 | + - test |
| 70 | + - lint |
| 71 | + - compile |
| 72 | + test-ubuntu-emacs-28: |
31 | 73 | docker:
|
32 |
| - - image: silex/emacs:27-ci-cask |
| 74 | + - image: silex/emacs:28-ci |
33 | 75 | entrypoint: bash
|
34 |
| - <<: *default-steps |
35 |
| - |
36 |
| - test-emacs-28: |
| 76 | + steps: |
| 77 | + - setup |
| 78 | + - test |
| 79 | + - lint |
| 80 | + - compile |
| 81 | + test-ubuntu-emacs-29: |
37 | 82 | docker:
|
38 |
| - - image: silex/emacs:28-ci-cask |
| 83 | + - image: silex/emacs:29-ci |
39 | 84 | entrypoint: bash
|
40 |
| - <<: *default-steps |
41 |
| - |
42 |
| - test-emacs-master: |
| 85 | + steps: |
| 86 | + - setup |
| 87 | + - test |
| 88 | + - lint |
| 89 | + - compile |
| 90 | + test-ubuntu-emacs-master: |
43 | 91 | docker:
|
44 |
| - - image: silex/emacs:master-ci-cask |
| 92 | + - image: silex/emacs:master-ci |
45 | 93 | entrypoint: bash
|
46 |
| - <<: *default-steps |
| 94 | + steps: |
| 95 | + - setup |
| 96 | + - test |
| 97 | + - lint |
| 98 | + - compile |
| 99 | + test-macos-emacs-latest: |
| 100 | + macos: |
| 101 | + xcode: "14.2.0" |
| 102 | + steps: |
| 103 | + - setup-macos |
| 104 | + - test |
| 105 | + - lint |
| 106 | + - compile |
| 107 | + test-windows-emacs-latest: |
| 108 | + executor: win/default |
| 109 | + steps: |
| 110 | + - run: |
| 111 | + name: Install Emacs latest |
| 112 | + command: | |
| 113 | + choco install emacs |
| 114 | + - setup-windows |
| 115 | + - test |
| 116 | + - lint |
| 117 | + - compile |
47 | 118 |
|
48 | 119 | workflows:
|
49 |
| - version: 2 |
| 120 | + version: 2.1 |
50 | 121 | ci-test-matrix:
|
51 | 122 | jobs:
|
52 |
| - - test-emacs-25 |
53 |
| - - test-emacs-26 |
54 |
| - - test-emacs-27 |
55 |
| - - test-emacs-28 |
56 |
| - - test-emacs-master |
| 123 | + - test-ubuntu-emacs-26 |
| 124 | + - test-ubuntu-emacs-27 |
| 125 | + - test-ubuntu-emacs-28 |
| 126 | + - test-ubuntu-emacs-29 |
| 127 | + - test-ubuntu-emacs-master |
| 128 | + - test-windows-emacs-latest |
| 129 | + - test-macos-emacs-latest: |
| 130 | + requires: |
| 131 | + - test-ubuntu-emacs-29 |
0 commit comments