golangci-lint/.travis.yml
Trevor Pounds c46c1b3224
Update to latest x/tools (#930)
* Update to latest x/tools (2020/01/19).

Fixes #893

* Initialize vet analyzers as unexportd global vars.

Fixes #915

* Support testing Go 1.14beta1.

* ci: reset go.mod and go.sum before generated diff check

* Update to latest x/tools (2020/02/04)

Co-authored-by: Aleksandr Razumov <ar@gortc.io>
2020-02-05 01:11:14 +03:00

35 lines
659 B
YAML

language: go
go:
- 1.12.x
- 1.13.x
- 1.14beta1
before_script:
- nvm install 12.14.0
script:
- time make fast_check_generated
- time make test
branches:
only: # speed up CI: don't build pull requests twice
- "master"
- /^v\d+\.\d+\.\d+$/
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: make release
on:
tags: true
# it's important to build on the newest version of go:
condition: $TRAVIS_GO_VERSION =~ ^1\.13