Skip to content

Commit 83e68cf

Browse files
MikaelSmithekinanp
authored andcommitted
Cleanup Travis CI, increase lint deadline
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 <[email protected]>
1 parent f55bf8a commit 83e68cf

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

.travis.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ services:
77
- docker
88
env:
99
global:
10-
- GO111MODULE=on
1110
- PROJECT_NAME=wash
1211
- WASH_DISABLE_ANALYTICS=true
1312
- HUGO_VERSION=0.57.1
@@ -25,7 +24,7 @@ jobs:
2524
- name: Lint with golangci-lint
2625
before_script:
2726
- curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin $GOLANGCI_LINT_VERSION
28-
script: golangci-lint run -v
27+
script: GOGC=20 golangci-lint run -v --concurrency 1 --deadline 3m # https://github.com/golangci/golangci-lint/issues/337#issuecomment-510136513
2928
- name: Test that website builds
3029
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
3130
script: hugo -s website

0 commit comments

Comments
 (0)