-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRunfile.yml
More file actions
58 lines (51 loc) · 1.27 KB
/
Runfile.yml
File metadata and controls
58 lines (51 loc) · 1.27 KB
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
tasks:
build:
env:
CGO_ENABLED: 0
GOOS:
sh: go env GOOS
GOARCH:
sh: go env GOARCH
version:
required: true
cmd:
- |+
echo "building ..."
go build -o bin/run-${GOOS}-${GOARCH} -ldflags="-s -w -X main.Version=$VERSION" -tags urfave_cli_no_docs ./cmd/run
echo "DONE"
build:dev:
watch:
enabled: true
dirs:
- .
cmd:
- run: build
env:
version: "nightly"
example:
dir: ./examples
cmd:
- echo "hello world"
test:
env:
pattern:
default: ""
only_failing:
default: false
watch:
dir:
- ./parser
onlySuffixes:
- .go
cmd:
- |+
pattern_args=""
[ -n "$pattern" ] && pattern_args="-run $pattern"
testfmt_args=""
[ "$only_failing" = "true" ] && testfmt_args="--hide successful-tests"
go test -json ./pkg/runfile/resolver/... $pattern_args | gotestfmt $testfmt_args
go test -json ./pkg/executor/... $pattern_args | gotestfmt $testfmt_args
test:only-failing:
cmd:
- go test -json ./pkg/runfile/resolver/... | gotestfmt --hide successful-tests
- go test -json ./pkg/executor/... | gotestfmt --hide successful-tests