-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdagger.cue
More file actions
47 lines (42 loc) · 771 Bytes
/
dagger.cue
File metadata and controls
47 lines (42 loc) · 771 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
package main
import (
"dagger.io/dagger"
"dagger.io/dagger/core"
"universe.dagger.io/docker"
)
dagger.#Plan & {
actions: {
image: docker.#Build & {
steps: [
docker.#Pull & {
source: "index.docker.io/silex/emacs:28"
},
]
}
test: {
src: core.#Source & {
path: "."
}
run: docker.#Run & {
_mountpoint: "/project"
input: image.output
mounts: "Project files": {
contents: src.output
dest: _mountpoint
}
workdir: _mountpoint
command: {
name: "emacs"
args: [
"-batch",
"-L", _mountpoint,
"-l", "ert",
"-l", "hack/generate-autoloads.el",
"-l", "tests/cue-mode-indent-tests.el",
"-f", "ert-run-tests-batch-and-exit",
]
}
}
}
}
}