mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-07 08:26:53 +00:00
57 lines
924 B
YAML
57 lines
924 B
YAML
|
meta:
|
||
|
project: gotesttools
|
||
|
|
||
|
mount=source:
|
||
|
bind: .
|
||
|
path: /go/src/gotest.tools
|
||
|
|
||
|
mount=depsources:
|
||
|
bind: ./.depsources
|
||
|
path: /go/pkg/dep/sources
|
||
|
|
||
|
image=builder:
|
||
|
image: gotesttools-dev
|
||
|
context: .
|
||
|
target: dev
|
||
|
args:
|
||
|
GOLANG_VERSION: '{env.GOLANG_VERSION:}'
|
||
|
|
||
|
image=linter:
|
||
|
image: gotesttools-lint
|
||
|
context: .
|
||
|
target: linter
|
||
|
|
||
|
job=shell:
|
||
|
use: builder
|
||
|
mounts: [source, depsources]
|
||
|
interactive: true
|
||
|
command: sh
|
||
|
|
||
|
job=watch:
|
||
|
use: builder
|
||
|
mounts: [source]
|
||
|
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]
|
||
|
interactive: true
|
||
|
command: scripts/test-unit
|
||
|
|
||
|
job=deps:
|
||
|
use: builder
|
||
|
mounts: [source, depsources]
|
||
|
command: dep ensure
|
||
|
|
||
|
job=lint:
|
||
|
use: linter
|
||
|
mounts: [source]
|
||
|
|
||
|
alias=test:
|
||
|
tasks: [test-unit]
|