ci: install gcc on windows
@@ -19,6 +19,8 @@ before_install:
- go get -u golang.org/x/lint/golint
- go get -u honnef.co/go/tools/cmd/megacheck
- go get github.com/fzipp/gocyclo
+# Install gcc, from https://travis-ci.community/t/go-cant-find-gcc-with-go1-11-1-on-windows/293/5
+- if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then choco install -y mingw; export PATH=/c/tools/mingw64/bin:"$PATH"; fi
before_script:
- GOFILES=$(find . -type f -name '*.go' | grep -v vendor)
script:
