1
0
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:
Andrey Nering 2018-07-15 15:42:46 -03:00
parent ab8549adea
commit fe31f5050d

View File

@ -5,24 +5,13 @@ vars:
sh: git log -n 1 --format=%h
GO_PACKAGES:
.
./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
sh: go list ./...
tasks:
# compiles current source code and make "task" executable available on
# $GOPATH/bin/task{.exe}
default:
cmds:
- task: test
install:
desc: Installs Task
cmds:
@ -35,8 +24,6 @@ tasks:
cmds:
- task: go-get
vars: {REPO: github.com/golang/lint/golint}
- task: go-get
vars: {REPO: github.com/asticode/go-astitodo/astitodo}
- task: go-get
vars: {REPO: github.com/golang/dep/cmd/dep}
- task: go-get
@ -58,14 +45,14 @@ tasks:
lint:
desc: Runs golint
cmds:
- golint {{.GO_PACKAGES}}
- golint {{catLines .GO_PACKAGES}}
silent: true
test:
desc: Runs test suite
deps: [install]
cmds:
- go test {{.GO_PACKAGES}}
- go test {{catLines .GO_PACKAGES}}
test-release:
desc: Tests release process without publishing
@ -77,12 +64,6 @@ tasks:
cmds:
- 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:
cmds:
- task: go-get
@ -93,3 +74,8 @@ tasks:
go-get:
cmds:
- go get -u {{.REPO}}
packages:
cmds:
- echo '{{.GO_PACKAGES}}'
silent: true