version: "0.0.1-{build}-unofficial-ci-appveyor"

clone_folder: c:\gopath\src\github.com\bpicode\fritzctl

environment:
  GOPATH: c:\gopath
  CC: gcc.exe

install:
  - set PATH=c:\go\bin;%GOPATH%\bin;C:\msys64\mingw64\bin\;C:\Program Files (x86)\NSIS\;%PATH%
  - echo %PATH%
  - echo %GOPATH%
  - go version
  - go env

build_script:
  - go build
  - gcc --version

test_script:
  - for /f "" %%G in ('go list ./... ^| find /i /v "/vendor/"') do ( go test -race %%G & IF ERRORLEVEL == 1 EXIT 1)

version: "0.0.1-{build}-unofficial-ci-appveyor"

clone_folder: c:\gopath\src\github.com\bpicode\fritzctl

environment:
  GOPATH: c:\gopath
  CC: gcc.exe

install:
  - set PATH=c:\go\bin;%GOPATH%\bin;C:\msys64\mingw64\bin\;C:\Program Files (x86)\NSIS\;%PATH%
  - echo %PATH%
  - echo %GOPATH%
  - go version
  - go env

build_script:
  - go build
  - gcc --version

test_script:
  - for /f "" %%G in ('go list ./... ^| find /i /v "/vendor/"') do ( go test %%G & IF ERRORLEVEL == 1 EXIT 1)

Remove race flag when testing on windows environment
Remove race flag when testing on windows environment

Seems to be related to https://github.com/golang/go/issues/23649.