summaryrefslogtreecommitdiff
path: root/libs/cargs/.appveyor.yml
blob: fa64d2da6e00f16c487559c309efa95813103f62 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
version: 0.1.0.{build}
image: Visual Studio 2017
configuration: Release

platform:
  - Win32
  - x64

clone_folder: c:\projects\cargs

init:
  - cmd: set arch_str=
  - cmd: if "%PLATFORM%"=="x64" (set arch_str= Win64)
  - cmd: echo %PLATFORM%
  - cmd: echo %APPVEYOR_BUILD_WORKER_IMAGE%
  - cmd: if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2017" ( set GENERATOR="Visual Studio 15 2017%arch_str%" )
  - cmd: if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2015" ( set GENERATOR="Visual Studio 14 2015%arch_str%" )
  - cmd: if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2013" ( set GENERATOR="Visual Studio 12 2013%arch_str%" )
  - cmd: echo %GENERATOR%

before_build:
  - cmd: mkdir build.win && cd build.win && cmake --version && cmake .. -G %GENERATOR% -DENABLE_TESTS=1

build:
  project: c:\projects\cargs\build.win\cargs.sln
  verbosity: minimal

test_script:
  - cmd: c:\projects\cargs\build.win\Release\cargstest.exe