Skip to content

Commit

Permalink
Cleanup Travis CI, increase lint deadline
Browse files Browse the repository at this point in the history
The latest version of golangci-lint is running slower and runs out of
memory. See golangci/golangci-lint#337 for
ongoing work on improving it.

Triple the deadline to allow more time, and only run a single thread for
testing to avoid running out of memory. Also make the garbage collector
more aggressive to avoid holding onto excess memory.

Signed-off-by: Michael Smith <michael.smith@puppet.com>
  • Loading branch information
MikaelSmith authored and ekinanp committed Oct 3, 2019
1 parent f55bf8a commit 83e68cf
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ services:
- docker
env:
global:
- GO111MODULE=on
- PROJECT_NAME=wash
- WASH_DISABLE_ANALYTICS=true
- HUGO_VERSION=0.57.1
Expand All @@ -25,7 +24,7 @@ jobs:
- name: Lint with golangci-lint
before_script:
- curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin $GOLANGCI_LINT_VERSION
script: golangci-lint run -v
script: GOGC=20 golangci-lint run -v --concurrency 1 --deadline 3m # https://github.com/golangci/golangci-lint/issues/337#issuecomment-510136513
- name: Test that website builds
install: curl -sfL https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_${HUGO_VERSION}_Linux-64bit.tar.gz | tar -xzC $(go env GOPATH)/bin
script: hugo -s website
Expand Down

0 comments on commit 83e68cf

Please sign in to comment.