-
-
Notifications
You must be signed in to change notification settings - Fork 56
/
Copy pathdocker-compose.yml
83 lines (65 loc) · 1.46 KB
/
docker-compose.yml
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
version: '3'
services:
build: &base
image: ghcr.io/rsteube/carapace
command: sh -c 'sh -c "cd /carapace-bin/cmd/carapace && go generate ./... && go build -ldflags=\"-s -w\" ."'
environment:
TARGET: /carapace-bin/cmd/carapace/carapace
volumes:
- '.:/carapace-bin/'
- 'go:/home/circleci/go/'
bash:
<<: *base
command: bash
ble:
<<: *base
command: bash
environment:
BLE: 1
TARGET: /carapace-bin/cmd/carapace/carapace
elvish:
<<: *base
command: elvish
fish:
<<: *base
command: fish
ion:
<<: *base
command: ion
nushell:
<<: *base
command: nu
oil:
<<: *base
command: osh --completion-display minimal
powershell:
<<: *base
command: pwsh
tcsh:
<<: *base
command: tcsh
xonsh:
<<: *base
command: xonsh
zsh:
<<: *base
command: zsh
test:
<<: *base
working_dir: /carapace-bin
command: go test -v ./...
inittrace:
<<: *base
working_dir: /carapace-bin
command: bash -c "GODEBUG=inittrace=1 go run ./cmd/carapace 2>&1 | grep 'init github.com/rsteube/carapace-bin' | awk '{print $$5\" \"$$6\" \"$$2}' | sort -r"
lint:
<<: *base
working_dir: /carapace-bin
command: bash -c 'go run ./cmd/caralint completers/*/cmd/*.go'
fmt:
<<: *base
working_dir: /carapace-bin
# user: 1000:1000
command: bash -c 'go run ./cmd/carafmt completers/*/cmd/*.go'
volumes:
go: