Skip to content

Commit

Permalink
fix(taskfile): remove generated files info
Browse files Browse the repository at this point in the history
  • Loading branch information
Icikowski committed Jan 6, 2023
1 parent d0087ea commit 5741a8e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
4 changes: 1 addition & 3 deletions tasks/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,11 @@ tasks:
GOOS: "{{ .goos | default OS }}"
GOARCH: "{{ .goarch | default ARCH }}"
cmds:
- go build -ldflags "{{ .flags_base }} {{ .flags_extra }}" -o ../target/goosymock_${GOOS}_${GOARCH}{{ .extension }} .
- go build -ldflags "{{ .flags_base }} {{ .flags_extra }}" -o ../target/binaries/goosymock_${GOOS}_${GOARCH}{{ .extension }} .
sources:
- "**/*.go"
- go.mod
- go.sum
generates:
- ../target/goosymock_{{ .goos | default OS }}_{{ .goarch | default ARCH }}{{ .extension }}
dynamic:
desc: Build a dynamic binary
cmds:
Expand Down
3 changes: 2 additions & 1 deletion tasks/dist.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,5 @@ tasks:
cmds:
- helm lint goosymock
- helm package goosymock --app-version "{{ .GIT_TAG }}" --version "{{ .GIT_TAG }}"
- mv goosymock-{{ .GIT_TAG }}.tgz ../../target
- mkdir -p ../../target/chart
- mv goosymock-{{ .GIT_TAG }}.tgz ../../target/chart
9 changes: 3 additions & 6 deletions tasks/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,11 @@ tasks:
cover:
desc: Run tests and build coverage report
cmds:
- mkdir -p ../target
- go test ./... -race -p 1 -v -covermode atomic -coverprofile ../target/cover.out
- go tool cover -html ../target/cover.out -o ../target/cover.html
- mkdir -p ../target/tests
- go test ./... -race -p 1 -v -covermode atomic -coverprofile ../target/tests/cover.out
- go tool cover -html ../target/tests/cover.out -o ../target/tests/cover.html
sources:
- "**/*.go"
- go.mod
- go.sum
generates:
- ../target/cover.out
- ../target/cover.html

0 comments on commit 5741a8e

Please sign in to comment.