forked from gkmngrgn/dosh-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdosh.yaml
32 lines (32 loc) · 898 Bytes
/
dosh.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
settings:
version: 1.0.0
verbosity: 0 # {QUIET: -1, NORMAL: 0, DEBUG: 1}
environments:
- DEV
- PROD
- TEST
aliases:
gobuild: go build -ldflags "-s -w"
commands:
start:
help_text: run a cli command
run: ./tmp/${1}.exe
build:
help_text: build or rebuild cli commands
run:
- MKDIR ./tmp/
- RUN ${gobuild} -o ./tmp/dosh.exe ./cmd/dosh
- PRINT dosh is ready.
- RUN ${gobuild} -o ./tmp/dosh-cli.exe ./cmd/cli
- PRINT dosh-cli is ready.
runtests:
environments:
- DEV
- TEST
help_text: run all tests
run: go test -coverprofile="./tmp/coverage.out" . ./cmd/cli ./cmd/dosh
coverage:
environments:
- DEV
help_text: generate coverage report and open it
run: go tool cover -html="coverage.out"