mirror of
https://github.com/go-task/task.git
synced 2026-05-18 21:26:37 +02:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
36317f8ddd | ||
|
|
115b4a308f | ||
|
|
62ba8dbabf |
@@ -25,6 +25,9 @@ release:
|
|||||||
snapshot:
|
snapshot:
|
||||||
name_template: "{{.Tag}}"
|
name_template: "{{.Tag}}"
|
||||||
|
|
||||||
|
checksum:
|
||||||
|
name_template: "task_checksums.txt"
|
||||||
|
|
||||||
nfpm:
|
nfpm:
|
||||||
vendor: Task
|
vendor: Task
|
||||||
homepage: https://github.com/go-task/task
|
homepage: https://github.com/go-task/task
|
||||||
@@ -36,21 +39,4 @@ nfpm:
|
|||||||
formats:
|
formats:
|
||||||
- deb
|
- deb
|
||||||
- rpm
|
- rpm
|
||||||
|
name_template: "{{.ProjectName}}_{{.Os}}_{{.Arch}}"
|
||||||
brew:
|
|
||||||
name: go-task
|
|
||||||
github:
|
|
||||||
owner: go-task
|
|
||||||
name: homebrew-tap
|
|
||||||
commit_author:
|
|
||||||
name: Andrey Nering
|
|
||||||
email: andrey.nering@gmail.com
|
|
||||||
folder: Formula
|
|
||||||
homepage: https://github.com/go-task/task
|
|
||||||
description: Task runner / simpler Make alternative written in Go
|
|
||||||
conflicts:
|
|
||||||
- taskwarrior
|
|
||||||
install: |
|
|
||||||
bin.install "task"
|
|
||||||
test: |
|
|
||||||
system "#{bin}/task", "--help"
|
|
||||||
|
|||||||
@@ -12,9 +12,7 @@ addons:
|
|||||||
|
|
||||||
script:
|
script:
|
||||||
- go install github.com/go-task/task/cmd/task
|
- go install github.com/go-task/task/cmd/task
|
||||||
- task dl-deps
|
- task ci
|
||||||
- task lint
|
|
||||||
- task test
|
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
- provider: script
|
- provider: script
|
||||||
|
|||||||
@@ -6,8 +6,13 @@ the `test-release` task of the Taskfile.
|
|||||||
|
|
||||||
The Travis CI should release automatically when a new
|
The Travis CI should release automatically when a new
|
||||||
Git tag is pushed to master, either for the artifact uploading (raw executables
|
Git tag is pushed to master, either for the artifact uploading (raw executables
|
||||||
and DEB and RPM packages) and publishing of a new version in the
|
and DEB and RPM packages)
|
||||||
[Homebrew tap][homebrewtap].
|
|
||||||
|
# Homebrew
|
||||||
|
|
||||||
|
To release a new version on the [Homebrew tap][homebrewtap] edit the
|
||||||
|
[Formula/go-task.rb][gotaskrb] file, updating with the new version, download
|
||||||
|
URL and sha256.
|
||||||
|
|
||||||
# Snapcraft
|
# Snapcraft
|
||||||
|
|
||||||
@@ -21,6 +26,7 @@ the [Snapscraft dashboard][snapcraftdashboard]
|
|||||||
|
|
||||||
[goreleaser]: https://goreleaser.com/#continuous_integration
|
[goreleaser]: https://goreleaser.com/#continuous_integration
|
||||||
[homebrewtap]: https://github.com/go-task/homebrew-tap
|
[homebrewtap]: https://github.com/go-task/homebrew-tap
|
||||||
|
[gotaskrb]: https://github.com/go-task/homebrew-tap/blob/master/Formula/go-task.rb
|
||||||
[snappackage]: https://github.com/go-task/snap
|
[snappackage]: https://github.com/go-task/snap
|
||||||
[snapcraftyaml]: https://github.com/go-task/snap/blob/master/snap/snapcraft.yaml#L2
|
[snapcraftyaml]: https://github.com/go-task/snap/blob/master/snap/snapcraft.yaml#L2
|
||||||
[snapcraftdashboard]: https://dashboard.snapcraft.io/
|
[snapcraftdashboard]: https://dashboard.snapcraft.io/
|
||||||
|
|||||||
25
Taskfile.yml
25
Taskfile.yml
@@ -11,10 +11,16 @@ tasks:
|
|||||||
dl-deps:
|
dl-deps:
|
||||||
desc: Downloads cli dependencies
|
desc: Downloads cli dependencies
|
||||||
cmds:
|
cmds:
|
||||||
- go get -u github.com/golang/lint/golint
|
- task: go-get
|
||||||
- go get -u github.com/asticode/go-astitodo/astitodo
|
vars: {REPO: github.com/golang/lint/golint}
|
||||||
- go get -u github.com/golang/dep/cmd/dep
|
- task: go-get
|
||||||
- if [ "$CI" != "1" ]; then go get -u github.com/goreleaser/goreleaser; fi
|
vars: {REPO: github.com/asticode/go-astitodo/astitodo}
|
||||||
|
- task: go-get
|
||||||
|
vars: {REPO: github.com/golang/dep/cmd/dep}
|
||||||
|
- task: go-get
|
||||||
|
vars: {REPO: github.com/goreleaser/goreleaser}
|
||||||
|
- task: go-get
|
||||||
|
vars: {REPO: github.com/goreleaser/godownloader}
|
||||||
|
|
||||||
update-deps:
|
update-deps:
|
||||||
desc: Updates dependencies
|
desc: Updates dependencies
|
||||||
@@ -49,3 +55,14 @@ tasks:
|
|||||||
cmds:
|
cmds:
|
||||||
- astitodo {{.GO_PACKAGES}}
|
- astitodo {{.GO_PACKAGES}}
|
||||||
silent: true
|
silent: true
|
||||||
|
|
||||||
|
ci:
|
||||||
|
cmds:
|
||||||
|
- task: go-get
|
||||||
|
vars: {REPO: github.com/golang/lint/golint}
|
||||||
|
- task: lint
|
||||||
|
- task: test
|
||||||
|
|
||||||
|
go-get:
|
||||||
|
cmds:
|
||||||
|
- go get -u {{.REPO}}
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ func (e *Executor) readTaskfile() error {
|
|||||||
func (e *Executor) readTaskfileData(path string) (*taskfile.Taskfile, error) {
|
func (e *Executor) readTaskfileData(path string) (*taskfile.Taskfile, error) {
|
||||||
if b, err := ioutil.ReadFile(path + ".yml"); err == nil {
|
if b, err := ioutil.ReadFile(path + ".yml"); err == nil {
|
||||||
var taskfile taskfile.Taskfile
|
var taskfile taskfile.Taskfile
|
||||||
return &taskfile, yaml.UnmarshalStrict(b, &taskfile)
|
return &taskfile, yaml.Unmarshal(b, &taskfile)
|
||||||
}
|
}
|
||||||
return nil, taskFileNotFound{path}
|
return nil, taskFileNotFound{path}
|
||||||
}
|
}
|
||||||
@@ -56,14 +56,14 @@ func (e *Executor) readTaskvars() error {
|
|||||||
)
|
)
|
||||||
|
|
||||||
if b, err := ioutil.ReadFile(file + ".yml"); err == nil {
|
if b, err := ioutil.ReadFile(file + ".yml"); err == nil {
|
||||||
if err := yaml.UnmarshalStrict(b, &e.taskvars); err != nil {
|
if err := yaml.Unmarshal(b, &e.taskvars); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if b, err := ioutil.ReadFile(osSpecificFile + ".yml"); err == nil {
|
if b, err := ioutil.ReadFile(osSpecificFile + ".yml"); err == nil {
|
||||||
osTaskvars := make(taskfile.Vars, 10)
|
osTaskvars := make(taskfile.Vars, 10)
|
||||||
if err := yaml.UnmarshalStrict(b, &osTaskvars); err != nil {
|
if err := yaml.Unmarshal(b, &osTaskvars); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
for k, v := range osTaskvars {
|
for k, v := range osTaskvars {
|
||||||
|
|||||||
Reference in New Issue
Block a user