]> granicus.if.org Git - gc/commitdiff
Appveyor CI: Refactoring of script to use environment matrix
authorIvan Maidanski <ivmai@mail.ru>
Tue, 23 Oct 2018 07:34:13 +0000 (10:34 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Tue, 23 Oct 2018 22:39:33 +0000 (01:39 +0300)
appveyor.yml

index bd74309240f0229a084d5ed353a837dbf1a5980e..697b4af31119b5c26aee12f565d006a30fea8061 100644 (file)
@@ -1,11 +1,22 @@
 version: 8.1.0-{build}
 
+environment:
+  matrix:
+  - TARGET: cmake
+    CMAKE_CONFIG: Debug
+    CMAKE_OPTIONS: -Denable_gc_assertions=ON
+
 clone_depth: 50
 
+install:
+- cmd: echo CMAKE_CONFIG=%CMAKE_CONFIG%
+- cmd: echo CMAKE_OPTIONS=%CMAKE_OPTIONS%
+- cmd: git clone --depth=50 https://github.com/ivmai/libatomic_ops.git
+
 build_script:
-  - git clone --depth=50 https://github.com/ivmai/libatomic_ops.git
-  - cmake -Denable_gc_assertions=ON
-  - cmake --build . --config Debug
+- cmd: if [%TARGET%]==[cmake] (
+    cmake %CMAKE_OPTIONS% &&
+    cmake --build . --config %CMAKE_CONFIG% )
 
 test_script:
-  - ctest --build-config Debug -V
+- cmd: if [%TARGET%]==[cmake] ( ctest --build-config %CMAKE_CONFIG% -V )