From 2a79140f6eb06eaf2be87f342c0b9f6cd7a6054d Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Tue, 23 Oct 2018 10:34:13 +0300 Subject: [PATCH] Appveyor CI: Refactoring of script to use environment matrix (a cherry-pick of commits e9b50024, d29c77c4 (partly) from 'master') --- appveyor.yml | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index 93ba4595..34b2f1ce 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -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 ) -- 2.40.0