version: v1-winbuild-{build}

image: Visual Studio 2017

platform:
  - Win32
  - x64

configuration:
  - Release

before_build:
  - cmd: if "%platform%"=="Win32" set msvc=Visual Studio 15 2017
  - cmd: if "%platform%"=="x64"   set msvc=Visual Studio 15 2017 Win64

build_script:
  - powershell ".\ci\do-ut.ps1;exit $LASTEXITCODE"
  - cd build
  - cpack -C "%configuration%"

artifacts:
  - path: build/td-agent-bit-*.exe
    name: td-agent-bit

version: v1-winbuild-{build}

image: Visual Studio 2017

platform:
  - Win32
  - x64

configuration:
  - Release

install:
  - if %PLATFORM%==x86 (set MSYS2_MSYSTEM=MINGW32) else set MSYS2_MSYSTEM=MINGW64
  - if %PLATFORM%==x86 (set MSYS2_PREFIX=C:\msys64\mingw32) else set MSYS2_PREFIX=C:\msys64\mingw64
  - cmd: set PATH=%MSYS2_PREFIX%\bin;C:\msys64\usr\bin;%PATH%
  - cmd: C:\msys64\usr\bin\pacman -Su --noconfirm bison flex

before_build:
  - cmd: if "%platform%"=="Win32" set msvc=Visual Studio 15 2017
  - cmd: if "%platform%"=="x64"   set msvc=Visual Studio 15 2017 Win64

build_script:
  - powershell ".\ci\do-ut.ps1;exit $LASTEXITCODE"
  - cd build
  - cpack -C "%configuration%"

artifacts:
  - path: build/td-agent-bit-*.exe
    name: td-agent-bit

Use bison and flex from MSYS2
ci: Use bison and flex from MSYS2

Signed-off-by: Hiroshi Hatake <a476a6e5b5893650242fbf0b2961500a9bd9032e@clear-code.com>
