version: 1.02.00-{build}

configuration:
  - Debug
  - Release

platform:
  - Win32
  - x64

install:
  - git submodule update --init --recursive

before_build:
  - md c:\projects\milkytracker\build
  - cd c:\projects\milkytracker\build
  - if %platform% == Win32 cmake -G "Visual Studio 14" -T v140_xp ..
  - if %platform% == x64 cmake -G "Visual Studio 14 Win64" -T v140_xp ..

build:
    project: c:\projects\milkytracker\build\MilkyTracker.sln

after_build:
  # https://github.com/chocolatey/chocolatey/issues/431
  - cmake -E remove -f c:\programdata\chocolatey\bin\cpack.exe
  - cpack -C %configuration%

artifacts:
  - path: build\milkytracker*.zip
