mirror of
https://github.com/go-task/task.git
synced 2024-12-12 10:45:49 +02:00
Taskfile.yml improvements
This commit is contained in:
parent
ab8549adea
commit
fe31f5050d
38
Taskfile.yml
38
Taskfile.yml
@ -5,24 +5,13 @@ vars:
|
|||||||
sh: git log -n 1 --format=%h
|
sh: git log -n 1 --format=%h
|
||||||
|
|
||||||
GO_PACKAGES:
|
GO_PACKAGES:
|
||||||
.
|
sh: go list ./...
|
||||||
./cmd/task
|
|
||||||
./internal/args
|
|
||||||
./internal/compiler
|
|
||||||
./internal/compiler/v1
|
|
||||||
./internal/compiler/v2
|
|
||||||
./internal/execext
|
|
||||||
./internal/logger
|
|
||||||
./internal/osext
|
|
||||||
./internal/output
|
|
||||||
./internal/status
|
|
||||||
./internal/taskfile
|
|
||||||
./internal/taskfile/version
|
|
||||||
./internal/templater
|
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
# compiles current source code and make "task" executable available on
|
default:
|
||||||
# $GOPATH/bin/task{.exe}
|
cmds:
|
||||||
|
- task: test
|
||||||
|
|
||||||
install:
|
install:
|
||||||
desc: Installs Task
|
desc: Installs Task
|
||||||
cmds:
|
cmds:
|
||||||
@ -35,8 +24,6 @@ tasks:
|
|||||||
cmds:
|
cmds:
|
||||||
- task: go-get
|
- task: go-get
|
||||||
vars: {REPO: github.com/golang/lint/golint}
|
vars: {REPO: github.com/golang/lint/golint}
|
||||||
- task: go-get
|
|
||||||
vars: {REPO: github.com/asticode/go-astitodo/astitodo}
|
|
||||||
- task: go-get
|
- task: go-get
|
||||||
vars: {REPO: github.com/golang/dep/cmd/dep}
|
vars: {REPO: github.com/golang/dep/cmd/dep}
|
||||||
- task: go-get
|
- task: go-get
|
||||||
@ -58,14 +45,14 @@ tasks:
|
|||||||
lint:
|
lint:
|
||||||
desc: Runs golint
|
desc: Runs golint
|
||||||
cmds:
|
cmds:
|
||||||
- golint {{.GO_PACKAGES}}
|
- golint {{catLines .GO_PACKAGES}}
|
||||||
silent: true
|
silent: true
|
||||||
|
|
||||||
test:
|
test:
|
||||||
desc: Runs test suite
|
desc: Runs test suite
|
||||||
deps: [install]
|
deps: [install]
|
||||||
cmds:
|
cmds:
|
||||||
- go test {{.GO_PACKAGES}}
|
- go test {{catLines .GO_PACKAGES}}
|
||||||
|
|
||||||
test-release:
|
test-release:
|
||||||
desc: Tests release process without publishing
|
desc: Tests release process without publishing
|
||||||
@ -77,12 +64,6 @@ tasks:
|
|||||||
cmds:
|
cmds:
|
||||||
- godownloader --repo go-task/task -o install-task.sh
|
- godownloader --repo go-task/task -o install-task.sh
|
||||||
|
|
||||||
todo:
|
|
||||||
desc: Prints TODO comments present in the code
|
|
||||||
cmds:
|
|
||||||
- astitodo {{.GO_PACKAGES}}
|
|
||||||
silent: true
|
|
||||||
|
|
||||||
ci:
|
ci:
|
||||||
cmds:
|
cmds:
|
||||||
- task: go-get
|
- task: go-get
|
||||||
@ -93,3 +74,8 @@ tasks:
|
|||||||
go-get:
|
go-get:
|
||||||
cmds:
|
cmds:
|
||||||
- go get -u {{.REPO}}
|
- go get -u {{.REPO}}
|
||||||
|
|
||||||
|
packages:
|
||||||
|
cmds:
|
||||||
|
- echo '{{.GO_PACKAGES}}'
|
||||||
|
silent: true
|
||||||
|
Loading…
Reference in New Issue
Block a user