-
Notifications
You must be signed in to change notification settings - Fork 1
/
Taskfile.yml
51 lines (50 loc) · 2.29 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
48
49
50
51
version: '3'
tasks:
build-coinbase-api:
cmds:
- >
env GO_POST_PROCESS_FILE='gofmt -w' openapi-generator-cli generate -i api/coinbase.yml -o pkg/coinbase
-g go -c api/coinbase.config.yaml --enable-post-process-file -t api/templates/coinbase
--git-repo-id go-crypto-sync --git-user-id will7200
# remove the go module files, we don't need those
- rm pkg/coinbase/go.mod && rm pkg/coinbase/go.sum
silent: false
build-nomics-api:
cmds:
- >
env GO_POST_PROCESS_FILE='gofmt -w' openapi-generator-cli generate -i api/nomics.yml -o pkg/nomics
-g go -c api/nomics.config.yml --enable-post-process-file -t api/templates/nomics
--git-repo-id go-crypto-sync --git-user-id will7200
# remove the go module files, we don't need those
- rm pkg/nomics/go.mod && rm pkg/nomics/go.sum
silent: false
build-binance-api:
cmds:
- >
env GO_POST_PROCESS_FILE='gofmt -w' openapi-generator-cli generate -i api/binance.yml -o pkg/binance
-g go -c api/binance.config.yml --enable-post-process-file -t api/templates/binance
--git-repo-id go-crypto-sync --git-user-id will7200
# remove the go module files, we don't need those
- rm pkg/binance/go.mod pkg/binance/go.sum pkg/binance/.travis.yml pkg/binance/git_push.sh
silent: false
build-coinex-api:
cmds:
- >
env GO_POST_PROCESS_FILE='gofmt -w' openapi-generator-cli generate -i api/coinex.yml -o pkg/coinex
-g go -c api/coinex.config.yml --enable-post-process-file -t api/templates/coinex
--git-repo-id go-crypto-sync --git-user-id will7200
# remove the go module files, we don't need those
- rm pkg/coinex/go.mod pkg/coinex/go.sum pkg/coinex/.travis.yml pkg/coinex/git_push.sh
silent: false
build-yieldwatch-api:
cmds:
- >
env GO_POST_PROCESS_FILE='gofmt -w' openapi-generator-cli generate -i api/yieldwatch.yml -o pkg/yieldwatch
-g go -c api/yieldwatch.config.yml --enable-post-process-file -t api/templates/yieldwatch
--git-repo-id go-crypto-sync --git-user-id will7200
# remove the go module files, we don't need those
- rm pkg/yieldwatch/go.mod pkg/yieldwatch/go.sum pkg/yieldwatch/.travis.yml pkg/yieldwatch/git_push.sh
silent: false
build:
cmds:
- go build github.com/will7200/go-crypto-sync/cmd/crypto-sync