forked from gotestyourself/gotestsum
/
dobi.yaml
56 lines (46 loc) · 1.07 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: gotestsum
mount=source:
bind: .
path: /go/src/github.com/FoGhost/gotestsum
mount=buildcache:
bind: ~/.cache/go-build
path: /root/.cache/go-build
mount=modcache:
bind: ~/go/pkg/mod
path: /go/pkg/mod
image=builder:
image: gotestsum-dev
context: dobifiles/
dockerfile: Dockerfile
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 ./dist/gotestsum -- -test.timeout 10s
env: ['GOTESTSUM_FORMAT=short-verbose']
depends: [binary]
job=test-unit:
use: builder
mounts: [source, buildcache, modcache]
interactive: true
command: scripts/test-unit
job=lint:
use: builder
mounts: [source, buildcache, modcache]
command: golangci-lint run
job=binary:
use: builder
mounts: [source, buildcache, modcache]
command: bash -c 'mkdir -p dist; go build -o dist/gotestsum .'
alias=test:
tasks: [test-unit]