-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTaskfile.yml
40 lines (34 loc) · 1.08 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
version: '3'
vars:
SOURCE_FOLDER: src
tasks:
default:
cmds:
- task: test
- task: build
mod:
desc: update go modules, add submodules to go root
cmds:
- cmd: |
export SOURCE_FOLDER={{.SOURCE_FOLDER}}
curl -sL https://raw.githubusercontent.com/triole/ghwfe/master/sh/go_add_sub_packages.sh | bash
build:
desc: build binary using remote ghwfe script, requires curl
cmds:
- cmd: |
export SOURCE_FOLDER={{.SOURCE_FOLDER}}
curl -sL https://raw.githubusercontent.com/triole/ghwfe/master/sh/go_build.sh | bash
test:
desc: run go tests
sources:
- "{{.SOURCE_FOLDER}}/*"
method: timestamp
cmds:
- cmd: >-
go test -trace go.trace -race -cover -bench=.
{{.SOURCE_FOLDER}}/*.go
deploy:
desc: build and copy to my personal arch mybins folder
cmds:
- task: build
- cmd : cp -rpf build/* ${HOME}/tools/arch/mybins/