-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yml
More file actions
43 lines (36 loc) · 1000 Bytes
/
Taskfile.yml
File metadata and controls
43 lines (36 loc) · 1000 Bytes
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
---
version: '3'
vars:
SOURCE_FOLDER: src
CURDIR:
sh: pwd
tasks:
default:
cmds:
- task: test
- task: build
mok:
desc: run mock test api
cmds:
- cmd: mokapi --providers-file-directory {{.CURDIR}}/testdata/api
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
cmds:
- cmd: go test ./... -v -coverpkg=./... -race -bench=.
deploy:
desc: build and copy to my personal arch mybins folder
cmds:
- task: build
- cmd: cp -rpf build/* ${HOME}/tools/arch/mybins/