Skip to content

Commit

Permalink
Fix Travis CI
Browse files Browse the repository at this point in the history
  • Loading branch information
andreynering committed May 1, 2018
1 parent 115b4a3 commit 36317f8
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 7 deletions.
4 changes: 1 addition & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
25 changes: 21 additions & 4 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,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
- 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
Expand Down Expand Up @@ -49,3 +55,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}}

0 comments on commit 36317f8

Please sign in to comment.