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-07-15 18:57:39 +02:00
|
|
|
- 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
|
2018-03-04 15:57:46 +02:00
|
|
|
- if [ "$CI" != "1" ]; then go get -u github.com/goreleaser/goreleaser; fi
|
2017-06-14 19:00:07 +02:00
|
|
|
|
|
|
|
update-deps:
|
2017-07-06 02:05:33 +02:00
|
|
|
desc: Updates dependencies
|
2017-06-14 19:00:07 +02:00
|
|
|
cmds:
|
2017-10-15 21:41:15 +02:00
|
|
|
- dep ensure
|
2017-06-16 19:59:12 +02:00
|
|
|
- dep ensure -update
|
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:
|
2017-07-20 01:23:02 +02:00
|
|
|
- golint {{.GO_PACKAGES}}
|
|
|
|
silent: true
|
2017-03-03 02:06:52 +02:00
|
|
|
|
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:
|
2017-10-15 21:58:21 +02:00
|
|
|
- go test {{.GO_PACKAGES}}
|
2017-02-28 23:50:29 +02:00
|
|
|
|
|
|
|
# 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:
|
2018-03-04 16:06:19 +02:00
|
|
|
- goreleaser --snapshot
|
2017-07-15 18:57:39 +02:00
|
|
|
|
|
|
|
todo:
|
|
|
|
desc: Prints TODO comments present in the code
|
|
|
|
cmds:
|
|
|
|
- astitodo {{.GO_PACKAGES}}
|
2017-07-20 01:23:02 +02:00
|
|
|
silent: true
|