platform:
  - x86

environment:
  CYG_ROOT: "C:\\cygwin"
  CYG_BASH: "%CYG_ROOT%\\bin\\bash -lc"
  TESTS: "false"
  OPAM_SWITCH: "4.03.0+mingw64c"
  PINS: "hvsock:https://github.com/mirage/ocaml-hvsock.git#v0.11.1"

install:
  - appveyor DownloadFile https://raw.githubusercontent.com/ocaml/ocaml-ci-scripts/master/appveyor-opam.sh
  - "%CYG_ROOT%\\setup-x86.exe -qnNdO -R %CYG_ROOT% -s http://cygwin.mirror.constant.com -l C:/cygwin/var/cache/setup -P rsync -P patch -P diffutils.3.5-1 -P make -P unzip -P git -P perl -P mingw64-x86_64-gcc-core"

build_script:
  - "%CYG_BASH% '${APPVEYOR_BUILD_FOLDER}/appveyor-opam.sh'"
  - "%CYG_BASH% -c 'cd ${APPVEYOR_BUILD_FOLDER}; make exe COMMIT'"
  - cmd: copy %APPVEYOR_BUILD_FOLDER%\Datakit\datakit.exe c:\projects\datakit\com.docker.db.exe
  - cmd: copy %APPVEYOR_BUILD_FOLDER%\Datakit\zlib1.dll c:\projects\datakit\zlib1.dll

artifacts:
  - path: "com.docker.db.exe"
  - path: "zlib1.dll"
  - path: "COMMIT"

platform:
  - x86

environment:
  FORK_USER: ocaml
  FORK_BRANCH: master
  CYG_ROOT: C:\cygwin64

install:
  - ps: iex ((new-object net.webclient).DownloadString("https://raw.githubusercontent.com/$env:FORK_USER/ocaml-ci-scripts/$env:FORK_BRANCH/appveyor-install.ps1"))

build_script:
  - call %CYG_ROOT%\bin\bash.exe -l %APPVEYOR_BUILD_FOLDER%\appveyor-opam.sh

Update to latest AppVeyor configuration
Update to latest AppVeyor configuration

Previously, the build was failing with:

    the following programs are not installed properly:
     unzip
    I can't proceed :(

Signed-off-by: Thomas Leonard <ea62ade398c3addd3bcc52285a00e98f3b0c618f@docker.com>
