-
Notifications
You must be signed in to change notification settings - Fork 1
/
Taskfile.yml
47 lines (43 loc) · 1.2 KB
/
Taskfile.yml
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
# https://taskfile.dev
version: "3"
vars:
targetbin: ~/bin
buildname: concur
tasks:
default:
cmds:
- echo "use 'task -l' to list tasks"
silent: true
install:
desc: copy build file to local bin
dir: .
preconditions:
- test -d {{.targetbin}}/
cmds:
- task: build
- cmd: rm {{.targetbin}}/{{.buildname}}
ignore_error: true
- cmd: cp dist/{{.buildname}}_{{OS}}_{{ARCH}}/{{.buildname}} {{.targetbin}}
ignore_error: true
build:
desc: build app
cmds:
- goreleaser release --snapshot --rm-dist
release:
dir: .
desc: release to github using goreleaser
cmds:
- goreleaser release --rm-dist
test-image:
desc: a test of calling concur to copy an image then remove it
dir: test/image
cmds:
- task: install
# - convert -size 30x30 xc: +noise Random random.png
# - concur 'convert -size 30x30 xc: +noise Random random{}.png && echo convert' -a '{1..10}'
- ls -lah
- concur 'rm -f {1./}{2}.png' -a 'random.png' -a '{1..10}'
- concur 'cp -p {1} {1./}{2}.png' -a 'random.png' -a '{1..10}'
- ls -lah
- concur 'rm {1./}{2}.png' -a 'random.png' -a '{1..10}'
- ls -lah