golangci-lint/.travis.yml
Denis Isaev 6508d1623a fix #513: don't add gofmt "with -s" if not needed
Output
  File is not `gofmt`-ed
insted of
  File is not `gofmt`-ed  with `-s`
when gofmt.simplify == false
2019-06-09 16:22:41 +03:00

28 lines
572 B
YAML

sudo: false
language: go
go:
- 1.11.x
- 1.12.x
before_script:
- go get github.com/valyala/quicktemplate
script: make check_generated test
after_success:
- test -n "$TRAVIS_TAG" && docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD"
- echo "travis go version='$TRAVIS_GO_VERSION'"
# needed for the docker pipe
services:
- docker
deploy:
- provider: script
skip_cleanup: true
script: curl -sL https://git.io/goreleaser | bash
on:
tags: true
# it's important to build on the newest version of go:
condition: $TRAVIS_GO_VERSION =~ ^1\.12