version: 4.6.0.{build}

cache:
  - C:\Users\appveyor\.ant
  - C:\ProgramData\chocolatey\bin
  - C:\ProgramData\chocolatey\lib
  - C:\libvhdi_64bit
  - C:\libvmdk_64bit
  - C:\libewf_64bit
  - C:\zlib

image: Visual Studio 2015


install:  
  - ps: choco install ant --ignore-dependencies
  - ps: $env:Path="C:\Program Files\Java\jdk1.8.0\bin;$($env:Path);C:\ProgramData\chocolatey\lib\ant"
  - set PATH=C:\Python36-x64\';%PATH%
environment:
    global:
      TSK_HOME: "%APPVEYOR_BUILD_FOLDER%"
      LIBVHDI_HOME: "C:\\libvhdi_64bit"
      LIBVMDK_HOME: "C:\\libvmdk_64bit\\libvmdk"
      LIBEWF_HOME: "C:\\libewf_64bit"
      POSTGRESQL_HOME_64: "C:\\Program Files\\PostgreSQL\\9.5"
      PYTHON: "C:\\Python36-x64"
      JDK_HOME: C:\Program Files\Java\jdk1.8.0
services:
      - postgresql95;

build_script:
      - python setupDevRepos.py
      - python win32\updateAndBuildAll.py -m 
      - ps: ant -version
      - ps: pushd bindings/java
      - cmd: ant -q dist-PostgreSQL
      - ps: popd

test: off
