It seems like your linter is causing exceeding memory usage. There’s a few things I recommend.
golangci-lint, this is a fast Go linter runner. It runs linters in parallel, uses caching, supports
You want to set analysis pass results to
nil early to garbage collect them sooner. So in theory adding this to your
.travis.yml could be extremely useful:
- script: GOGC=20 golangci-lint run -v --concurrency 1 --deadline 3m # https://github.com/golangci/golangci-lint/issues/337#issuecomment-510136513
Let me know how this works.
Travis CI Staff