1
0
mirror of https://github.com/go-task/task.git synced 2025-01-06 03:53:54 +02:00
task/Taskfile.yml

50 lines
977 B
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
vars:
GIT_COMMIT: $git log -n 1 --format=%h
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
2017-06-14 19:00:07 +02:00
- go get -u github.com/golang/dep/cmd/dep
update-deps:
cmds:
- dep ensure
- 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