language: go
go: 1.11.1
before_install:
- go get github.com/golang/dep/cmd/dep
install:
- dep ensure
before_script:
- GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -gcflags=-e -ldflags="-X github.com/cenkalti/rain/torrent/internal/clientversion.Version=$TRAVIS_TAG"
- go get github.com/alecthomas/gometalinter
- gometalinter --install
- gometalinter --config=gometalinter.json
- go get golang.org/x/tools/cmd/cover
- go get github.com/mattn/goveralls
script: goveralls -v -race -package ./...
deploy:
- provider: script
  script: curl -sL https://git.io/goreleaser | bash
  on:
    tags: true
    condition: $TRAVIS_OS_NAME = linux

language: go
go: 1.11.1
before_install:
- go get github.com/golang/dep/cmd/dep
install:
- dep ensure
before_script:
- GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -gcflags=-e -ldflags="-X github.com/cenkalti/rain/torrent/internal/clientversion.Version=$TRAVIS_TAG"
- go get github.com/alecthomas/gometalinter
- gometalinter --install
- gometalinter --config=gometalinter.json
- go get golang.org/x/tools/cmd/cover
- go get github.com/mattn/goveralls
script: goveralls -v -race -package ./...
deploy:
- provider: script
  skip_cleanup: true
  script: curl -sL https://git.io/goreleaser | bash
  on:
    tags: true
    condition: $TRAVIS_OS_NAME = linux

Revert "do not skip cleanup"
Revert "do not skip cleanup"

This reverts commit 11d9582ccce748d9a64b4f8913d420d743d60843.
