
Preprocessed files like .qtpl.go quicktemplate Go files can have //line directives. They map to a source .qtpl file. This commit fixes linting of such files: 1. don't fail on AST cache loading 2. output Go filename not .qtpl or similar Also, here we update golint to the upstream version. Relates: #316, #466, #467, #468
28 lines
572 B
YAML
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
|