golangci-lint/.travis.yml
2018-07-28 23:48:17 +03:00

26 lines
653 B
YAML

sudo: false
language: go
go:
- 1.9.x
- 1.10.x
- 1.11beta2
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:
# - go1.11 type checking properly supports _wasm.go file, without that golangci-lint won't compile program with go 1.11 env
condition: $TRAVIS_GO_VERSION =~ ^1\.11