mirror of
https://github.com/onyx-and-iris/vbantxt.git
synced 2025-02-22 13:25:06 +00:00
run through formatter
This commit is contained in:
parent
3afc5ee66c
commit
db497a017b
24
Taskfile.yml
24
Taskfile.yml
@ -12,40 +12,44 @@ vars:
|
|||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
default:
|
default:
|
||||||
desc: "Build the vbantxt project"
|
desc: Build the vbantxt project
|
||||||
deps: [build]
|
cmds:
|
||||||
|
- task: build
|
||||||
|
|
||||||
build:
|
build:
|
||||||
desc: "Build the vbantxt project"
|
desc: 'Build the vbantxt project'
|
||||||
deps: [vet, build-windows, build-linux]
|
deps: [vet]
|
||||||
|
cmds:
|
||||||
|
- task: build-windows
|
||||||
|
- task: build-linux
|
||||||
|
|
||||||
vet:
|
vet:
|
||||||
desc: "Vet the code"
|
desc: Vet the code
|
||||||
deps: [fmt]
|
deps: [fmt]
|
||||||
cmds:
|
cmds:
|
||||||
- go vet ./...
|
- go vet ./...
|
||||||
|
|
||||||
fmt:
|
fmt:
|
||||||
desc: "Fmt the code"
|
desc: Fmt the code
|
||||||
cmds:
|
cmds:
|
||||||
- go fmt ./...
|
- go fmt ./...
|
||||||
|
|
||||||
build-windows:
|
build-windows:
|
||||||
desc: "Build the vbantxt project for Windows"
|
desc: Build the vbantxt project for Windows
|
||||||
cmds:
|
cmds:
|
||||||
- GOOS=windows GOARCH=amd64 go build -o {{.WINDOWS}} -ldflags="-X main.Version={{.GIT_COMMIT}}" ./cmd/{{.PROGRAM}}/
|
- GOOS=windows GOARCH=amd64 go build -o {{.WINDOWS}} -ldflags="-X main.Version={{.GIT_COMMIT}}" ./cmd/{{.PROGRAM}}/
|
||||||
|
|
||||||
build-linux:
|
build-linux:
|
||||||
desc: "Build the vbantxt project for Linux"
|
desc: Build the vbantxt project for Linux
|
||||||
cmds:
|
cmds:
|
||||||
- GOOS=linux GOARCH=amd64 go build -o {{.LINUX}} -ldflags="-X main.Version={{.GIT_COMMIT}}" ./cmd/{{.PROGRAM}}/
|
- GOOS=linux GOARCH=amd64 go build -o {{.LINUX}} -ldflags="-X main.Version={{.GIT_COMMIT}}" ./cmd/{{.PROGRAM}}/
|
||||||
|
|
||||||
test:
|
test:
|
||||||
desc: "Run tests"
|
desc: Run tests
|
||||||
cmds:
|
cmds:
|
||||||
- go test ./...
|
- go test ./...
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
desc: "Clean the build artifacts"
|
desc: Clean the build artifacts
|
||||||
cmds:
|
cmds:
|
||||||
- '{{.SHELL}} rm -r {{.BIN_DIR}}'
|
- '{{.SHELL}} rm -r {{.BIN_DIR}}'
|
Loading…
Reference in New Issue
Block a user