-
Notifications
You must be signed in to change notification settings - Fork 50
/
dobi.yaml
56 lines (46 loc) · 1.01 KB
/
dobi.yaml
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
meta:
project: gotesttools
mount=source:
bind: .
path: /go/src/gotest.tools
mount=buildcache:
bind: ~/.cache/go-build
path: /root/.cache/go-build
mount=modcache:
bind: ~/go/pkg/mod
path: /go/pkg/mod
image=builder:
image: gotesttools-dev
context: .
target: dev
args:
GOLANG_VERSION: '{env.GOLANG_VERSION:}'
job=shell:
use: builder
mounts: [source, buildcache, modcache]
interactive: true
command: sh
job=watch:
use: builder
mounts: [source, buildcache, modcache]
interactive: true
command: |
filewatcher -x vendor gotestsum -- -test.timeout 10s
env:
- 'GOTESTSUM_FORMAT=short-verbose'
- 'GOTESTTOOLS_DEBUG={env.GOTESTTOOLS_DEBUG:}'
job=test-unit:
use: builder
mounts: [source, buildcache, modcache]
interactive: true
command: scripts/test-unit
job=deps:
use: builder
mounts: [source, buildcache, modcache]
command: dep ensure
job=lint:
use: builder
mounts: [source, buildcache, modcache]
command: golangci-lint run
alias=test:
tasks: [test-unit]