Skip to content

Commit

Permalink
Try to parallelize linting
Browse files Browse the repository at this point in the history
  • Loading branch information
sheerun committed May 11, 2020
1 parent 580284f commit 3ecdce0
Showing 1 changed file with 31 additions and 28 deletions.
59 changes: 31 additions & 28 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,32 +1,35 @@
dist: xenial

os:
- linux

language: go

go:
- "1.14.x"
- tip

matrix:
allow_failures:
- go: tip

cache:
directories:
- $GOPATH/pkg/mod

env:
- GOLANGCI_RELEASE="v1.26.0"

before_install:
- GO111MODULE=off go get github.com/mattn/goveralls
- GO111MODULE=off go get github.com/lawrencewoodman/roveralls
- curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin ${GOLANGCI_RELEASE}

script:
- make test
- make lint
- travis_wait 20 roveralls
- goveralls -coverprofile=roveralls.coverprofile -service=travis-ci
jobs:
include:
- stage: common

go:
- "1.14.x"
- tip

matrix:
allow_failures:
- go: tip

cache:
directories:
- $GOPATH/pkg/mod

env:
- GOLANGCI_RELEASE="v1.26.0"

before_install:
- GO111MODULE=off go get github.com/mattn/goveralls
- GO111MODULE=off go get github.com/lawrencewoodman/roveralls

script:
- make test
- travis_wait 20 roveralls
- goveralls -coverprofile=roveralls.coverprofile -service=travis-ci
- before_install:
- curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin ${GOLANGCI_RELEASE}
script:
- make lint

0 comments on commit 3ecdce0

Please sign in to comment.