version: "{build}"
platform: x64
clone_depth: 2
clone_folder: c:\gopath\src\github.com\fsouza\go-dockerclient
environment:
  GOPATH: c:\gopath
  GOPROXY: https://proxy.golang.org
  SKIP_FMT_CHECK: 1
  matrix:
    - GOVERSION: &go111 "1.11.10"
      DEP_TOOL: dep
      GO111MODULE: off
    - GOVERSION: &go112 "1.12.5"
      DEP_TOOL: dep
      GO111MODULE: off
    - GOVERSION: *go111
      DEP_TOOL: mod
      GO111MODULE: on
    - GOVERSION: *go112
      DEP_TOOL: mod
      GO111MODULE: on
install:
  - choco install make
  - set PATH=%GOPATH%\bin;c:\go\bin;%PATH%
  - rmdir c:\go /s /q
  - appveyor DownloadFile https://storage.googleapis.com/golang/go%GOVERSION%.windows-amd64.zip
  - 7z x go%GOVERSION%.windows-amd64.zip -y -oC:\ > NUL
build_script:
  - make testdeps DEP_TOOL=%DEP_TOOL%
test_script:
  - make pretest gotest DEP_TOOL=%DEP_TOOL%
matrix:
  fast_finish: true
