Skip to content

Commit 92da98d

Browse files
authored
docs(CI): Add for examples (#95)
1 parent 9e96739 commit 92da98d

File tree

4 files changed

+109
-3
lines changed

4 files changed

+109
-3
lines changed
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
---
2+
title: 💠 CircleCI
3+
weight: 400
4+
---
5+
6+
{{< toc >}}
7+
8+
Example to use [Circle CI](https://circleci.com/).
9+
10+
```yml
11+
# 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 install
18+
eask compile
19+
eask lint package
20+
21+
# Enumerated list of Emacs versions
22+
jobs:
23+
test-emacs-26:
24+
docker:
25+
- image: silex/emacs:26.2
26+
entrypoint: bash
27+
<<: *default-steps
28+
29+
test-emacs-master:
30+
docker:
31+
- image: silex/emacs:master
32+
entrypoint: bash
33+
<<: *default-steps
34+
35+
# Executing in parallel
36+
workflows:
37+
version: 2
38+
ci-test-matrix:
39+
jobs:
40+
- test-emacs-26
41+
- test-emacs-master
42+
```
43+
44+
This example is testing your Emacs Lisp package in the below environment;
45+
46+
* Emacs: `26.2` and `snapshot`
47+
* Eask: `snapshot` (latest)

docs/content/en/Continuous Integration/GitHub Actions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ weight: 100
55

66
{{< toc >}}
77

8-
Here is an example using the GitHub Actions service.
8+
Here is an example using the [GitHub](https://github.com/) Actions service.
99

1010
```yml
1111
jobs:
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---
2+
title: 🦊 GitLab Runner
3+
weight: 200
4+
---
5+
6+
{{< toc >}}
7+
8+
Example to use [GitLab](https://gitlab.com/) runner.
9+
10+
```yml
11+
default:
12+
image: node:16
13+
14+
pages:
15+
stage: test
16+
before_script:
17+
- npm install @emacs-eask/cli -g
18+
- apt-get update
19+
- apt-get install emacs -y
20+
script:
21+
- eask install
22+
- eask compile
23+
- eask lint package
24+
only:
25+
- main
26+
```
27+
28+
This example is testing your Emacs Lisp package in the below environment;
29+
30+
* Emacs: `snapshot`
31+
* Eask: `snapshot` (latest)
Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,36 @@
11
---
22
title: 📀 Travis CI
3-
weight: 200
3+
weight: 300
44
---
55

66
{{< toc >}}
77

8-
WIP
8+
Example to use [Travis CI](https://www.travis-ci.com/).
9+
10+
```yml
11+
language: node_js
12+
node_js:
13+
- 16
14+
15+
env:
16+
- EVM_EMACS=emacs-27.2-travis-linux-xenial
17+
- EVM_EMACS=emacs-git-snapshot-travis-linux-xenial
18+
19+
matrix:
20+
fast_finish: true
21+
allow_failures:
22+
- env: EVM_EMACS=emacs-git-snapshot-travis-linux-xenial
23+
24+
install:
25+
- npm install @emacs-eask/cli -g
26+
27+
script:
28+
- eask install
29+
- eask compile
30+
- eask lint package
31+
```
32+
33+
This example is testing your Emacs Lisp package in the below environment;
34+
35+
* Emacs: `27.2` and `snapshot`
36+
* Eask: `snapshot` (latest)

0 commit comments

Comments
 (0)