mirror of
https://github.com/semaphoreui/semaphore.git
synced 2024-11-23 20:35:24 +01:00
commit
f02c260e35
13
Taskfile.yml
13
Taskfile.yml
@ -23,9 +23,9 @@ tasks:
|
||||
deps:
|
||||
desc: Install all dependencies (except dredd requirements)
|
||||
cmds:
|
||||
- task: deps:tools
|
||||
- task: deps:be
|
||||
- task: deps:fe2
|
||||
- task: deps:tools
|
||||
- task: deps:be
|
||||
- task: deps:fe2
|
||||
|
||||
deps:be:
|
||||
desc: Vendor application dependencies
|
||||
@ -54,7 +54,6 @@ tasks:
|
||||
GOLINTER_VERSION: "1.46.2"
|
||||
cmds:
|
||||
- go install github.com/gobuffalo/packr/...@v1.10.4
|
||||
- go install github.com/haya14busa/goverage@latest
|
||||
- go install github.com/snikch/goodman/cmd/goodman@latest
|
||||
- go install github.com/go-swagger/go-swagger/cmd/swagger@latest
|
||||
- '{{ if ne OS "windows" }} sh -c "curl -L https://github.com/goreleaser/goreleaser/releases/download/v{{ .GORELEASER_VERSION }}/goreleaser_$(uname -s)_$(uname -m).tar.gz | tar -xz -C $(go env GOPATH)/bin goreleaser"{{ else }} {{ end }}'
|
||||
@ -128,7 +127,7 @@ tasks:
|
||||
desc: Build a binary for the current architecture
|
||||
dir: cli
|
||||
cmds:
|
||||
- go build -o ../bin/semaphore{{ if eq OS "windows" }}.exe{{ end }}
|
||||
- go build -o ../bin/semaphore{{ if eq OS "windows" }}.exe{{ end }}
|
||||
|
||||
release:
|
||||
desc: creates a release without performing validations or publishing artifacts
|
||||
@ -157,9 +156,7 @@ tasks:
|
||||
cmds:
|
||||
- go vet ./...
|
||||
- swagger validate ./api-docs.yml
|
||||
# 2> /dev/null makes goverage less noisy about pattern matching
|
||||
# if no tests exist but will still print failing test results
|
||||
- goverage -v -coverprofile=coverage.out ./... 2> /dev/null
|
||||
- go test -v -coverprofile=coverage.out ./...
|
||||
|
||||
test:api:
|
||||
desc: test the api with dredd
|
||||
|
Loading…
Reference in New Issue
Block a user