]> 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>
Mon, 26 Nov 2018 06:57:43 +0000 (09:57 +0300)
(a cherry-pick of commits e9b50024d29c77c4 (partly) from 'master')

appveyor.yml

index 93ba459503955a7a70388e7fbe7b0396e1f6b460..34b2f1ce5a37a2aeb9e3cf8c2e1ade3bb3203933 100644 (file)
@@ -1,11 +1,20 @@
 version: 8.0.0-{build}
 
+environment:
+  matrix:
+  - TARGET: cmake
+    CMAKE_CONFIG: Debug
+    CMAKE_OPTIONS: -Denable_gc_assertions=ON
+
 clone_depth: 50
 
+install:
+- cmd: git clone --depth=50 https://github.com/ivmai/libatomic_ops.git -b release-7_6
+
 build_script:
-  - git clone --depth=50 https://github.com/ivmai/libatomic_ops.git -b release-7_6
-  - 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 )