1
0
mirror of https://github.com/go-task/task.git synced 2024-12-12 10:45:49 +02:00
task/Taskfile.yml

55 lines
1.1 KiB
YAML
Raw Normal View History

2017-03-03 02:06:52 +02:00
# compiles current source code and make "task" executable available on
# $GOPATH/bin/task{.exe}
2017-02-28 23:50:29 +02:00
install:
2017-03-19 20:18:59 +02:00
desc: Installs Task
2017-02-28 23:50:29 +02:00
cmds:
2017-06-14 20:28:35 +02:00
- go install -v -ldflags="-w -s -X main.version={{.GIT_COMMIT}}" ./cmd/task
2017-02-28 23:50:29 +02:00
2017-04-24 15:39:24 +02:00
dl-deps:
2017-04-24 15:46:42 +02:00
desc: Downloads cli dependencies
2017-04-24 15:39:24 +02:00
cmds:
- go get -u github.com/golang/lint/golint
2017-04-24 15:48:57 +02:00
- go get -u github.com/goreleaser/goreleaser
- go get -u github.com/asticode/go-astitodo/astitodo
2017-06-14 19:00:07 +02:00
- go get -u github.com/golang/dep/cmd/dep
update-deps:
2017-07-06 02:05:33 +02:00
desc: Updates dependencies
2017-06-14 19:00:07 +02:00
cmds:
2017-06-16 19:59:12 +02:00
- dep ensure -update
2017-06-14 19:00:07 +02:00
- dep prune
2017-04-24 15:39:24 +02:00
2017-06-14 20:28:35 +02:00
clean:
desc: Cleans temp files and folders
cmds:
- rm -rf dist/
2017-03-03 02:06:52 +02:00
lint:
2017-03-19 20:18:59 +02:00
desc: Runs golint
2017-03-03 02:06:52 +02:00
cmds:
- golint .
2017-04-24 15:25:38 +02:00
- golint ./execext
2017-03-03 02:06:52 +02:00
- golint ./cmd/task
2017-02-28 23:50:29 +02:00
test:
2017-03-19 20:18:59 +02:00
desc: Runs test suite
2017-03-16 02:15:27 +02:00
deps: [install]
2017-02-28 23:50:29 +02:00
cmds:
- go test -v
# https://github.com/goreleaser/goreleaser
release:
2017-03-19 20:18:59 +02:00
desc: Release Task
2017-02-28 23:50:29 +02:00
cmds:
- goreleaser
2017-06-14 20:28:35 +02:00
test-release:
desc: Tests release process without publishing
cmds:
- goreleaser --skip-validate --skip-publish
todo:
desc: Prints TODO comments present in the code
cmds:
- astitodo {{.GO_PACKAGES}}