1
0
mirror of https://github.com/go-task/task.git synced 2025-03-17 21:08:01 +02:00

Fix Travis CI

This commit is contained in:
Andrey Nering 2018-04-07 15:36:37 -03:00
parent 4dccdb95b9
commit 2cb2668803
2 changed files with 22 additions and 8 deletions

View File

@ -12,9 +12,7 @@ addons:
script:
- go install github.com/go-task/task/cmd/task
- task dl-deps
- task lint
- task test
- task ci
deploy:
- provider: script

View File

@ -29,11 +29,16 @@ tasks:
dl-deps:
desc: Downloads cli dependencies
cmds:
- go get -u github.com/golang/lint/golint
- go get -u github.com/asticode/go-astitodo/astitodo
- go get -u github.com/golang/dep/cmd/dep
- if [ "$CI" != "1" ]; then go get -u github.com/goreleaser/goreleaser; fi
- go get -u github.com/goreleaser/godownloader
- 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
vars: {REPO: github.com/goreleaser/goreleaser}
- task: go-get
vars: {REPO: github.com/goreleaser/godownloader}
update-deps:
desc: Updates dependencies
@ -73,3 +78,14 @@ tasks:
cmds:
- astitodo {{.GO_PACKAGES}}
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}}