-
Notifications
You must be signed in to change notification settings - Fork 1
/
z.yaml
44 lines (43 loc) · 998 Bytes
/
z.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
default: default
tasks:
hello: z -c examples/hello.yaml $@
default:
- z readme
- z build
symlink: go build && ln -sf $(pwd)/z $HOME/bin/
release:
desc: z release v1.0.0
args:
required: true
run:
- git tag $@
- git push origin
tasks:
install:
desc: Install via gobinaries
run:
- curl -sSL gobinaries.com/zakuro9715/z | sh
readme:
desc: Generate readme
run:
- sh scripts/generate-readme.sh
test:
- go test ./...
build:
- go build .
run:
- go run .
bench:
- go test -bench . -benchmem
bench.commit: |
z bench.write
git add benchmark.txt
git commit -m "update benchmark"
bench.write: |
txt=$(cat benchmark.txt)
bar="=========================="
header="$bar $(date '+%Y-%m-%d'): $(git rev-parse HEAD) $bar"
echo $header > benchmark.txt
z bench >> benchmark.txt
echo $header | sed 's/./=/g' >> benchmark.txt
echo "$txt" >> benchmark.txt