I got it to work by installing mingw and adding it to the PATH. For reference I added
before_install:
# Go1.11 requires GCC to run go test
- if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then choco install -y mingw; export PATH=/c/tools/mingw64/bin:"$PATH"; fi
You can view my updated PR for a passing windows travis build.
Note: We currently have appveyor integrated, and it only takes 2min6s to run our CI. However, windows and travis took 8minutes. I am guessing a large part of that is needing to install mingw, so it being part of the base image would be great.
I filed Files in checkout have EOL changed from LF to CRLF about the line endings.