summaryrefslogtreecommitdiff
path: root/libs/cargs/.appveyor.yml
diff options
context:
space:
mode:
Diffstat (limited to 'libs/cargs/.appveyor.yml')
-rw-r--r--libs/cargs/.appveyor.yml29
1 files changed, 29 insertions, 0 deletions
diff --git a/libs/cargs/.appveyor.yml b/libs/cargs/.appveyor.yml
new file mode 100644
index 0000000..fa64d2d
--- /dev/null
+++ b/libs/cargs/.appveyor.yml
@@ -0,0 +1,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