33 lines
598 B
YAML
33 lines
598 B
YAML
language: go
|
|
|
|
go:
|
|
- 1.12.x
|
|
- 1.x
|
|
|
|
dist: xenial
|
|
|
|
env:
|
|
- GO111MODULE=on
|
|
|
|
notifications:
|
|
email:
|
|
on_success: never
|
|
on_failure: change
|
|
|
|
before_install:
|
|
# Install linters and misspell
|
|
- curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | bash -s -- -b $GOPATH/bin v1.15.0
|
|
- golangci-lint --version
|
|
|
|
install:
|
|
- echo "TRAVIS_GO_VERSION=$TRAVIS_GO_VERSION"
|
|
- go mod download
|
|
|
|
deploy:
|
|
- provider: script
|
|
skip_cleanup: true
|
|
script: curl -sL https://git.io/goreleaser | bash
|
|
on:
|
|
tags: true
|
|
condition: $TRAVIS_GO_VERSION =~ ^1\.x$
|