1os: Visual Studio 2015 2 3# ENABLE_CUSTOM_COMPILER_FLAGS - on by default 4# ENABLE_SANITIZERS - off by default 5# ENABLE_PUBLIC_SYMBOLS - on by default 6# BUILD_SHARED_LIBS - on by default 7# ENABLE_TARGET_EXPORT - on by default 8# ENABLE_CJSON_UTILS - off by default 9# ENABLE_CJSON_TEST -on by default 10# ENABLE_VALGRIND - off by default 11# ENABLE_FUZZING - off by default 12 13environment: 14 matrix: 15 - GENERATOR: "Visual Studio 14 2015" 16 BUILD_SHARED_LIBS: ON 17 ENABLE_CJSON_TEST: OFF 18 ENABLE_CJSON_UTILS: ON 19 20 - GENERATOR: "Visual Studio 14 2015" 21 BUILD_SHARED_LIBS: OFF 22 ENABLE_CJSON_TEST: OFF 23 ENABLE_CJSON_UTILS: ON 24 25 - GENERATOR: "Visual Studio 12 2013" 26 BUILD_SHARED_LIBS: ON 27 ENABLE_CJSON_TEST: OFF 28 ENABLE_CJSON_UTILS: ON 29 30 - GENERATOR: "Visual Studio 12 2013" 31 BUILD_SHARED_LIBS: OFF 32 ENABLE_CJSON_TEST: OFF 33 ENABLE_CJSON_UTILS: ON 34 35 - GENERATOR: "Visual Studio 11 2012" 36 BUILD_SHARED_LIBS: ON 37 ENABLE_CJSON_TEST: OFF 38 ENABLE_CJSON_UTILS: ON 39 40 - GENERATOR: "Visual Studio 11 2012" 41 BUILD_SHARED_LIBS: OFF 42 ENABLE_CJSON_TEST: OFF 43 ENABLE_CJSON_UTILS: ON 44 45 - GENERATOR: "Visual Studio 10 2010" 46 BUILD_SHARED_LIBS: ON 47 ENABLE_CJSON_TEST: OFF 48 ENABLE_CJSON_UTILS: ON 49 50 - GENERATOR: "Visual Studio 10 2010" 51 BUILD_SHARED_LIBS: OFF 52 ENABLE_CJSON_TEST: OFF 53 ENABLE_CJSON_UTILS: ON 54 55 - GENERATOR: "Visual Studio 9 2008" 56 BUILD_SHARED_LIBS: ON 57 ENABLE_CJSON_TEST: OFF 58 ENABLE_CJSON_UTILS: ON 59 60 - GENERATOR: "Visual Studio 9 2008" 61 BUILD_SHARED_LIBS: OFF 62 ENABLE_CJSON_TEST: OFF 63 ENABLE_CJSON_UTILS: ON 64 65 66platform: 67 - x86 68 - x64 69matrix: 70 exclude: 71 - platform: x64 72 GENERATOR: "Visual Studio 9 2008" 73 74configuration: 75 - Release 76 77 78build_script: 79 - ps: if($env:PLATFORM -eq "x64") { $env:CMAKE_GEN_SUFFIX=" Win64" } 80 - cmake "-G%GENERATOR%%CMAKE_GEN_SUFFIX%" -DBUILD_SHARED_LIBS=%BUILD_SHARED_LIBS% -DENABLE_CJSON_TEST=%ENABLE_CJSON_TEST% -H. -Bbuild 81 - cmake --build build --config "%CONFIGURATION%" 82 83 84on_failure: 85 - ps: if(Test-Path builds/CMakeFiles/CMakeOutput.log) { cat builds/CMakeFiles/CMakeOutput.log } 86 - ps: if(Test-Path builds/CMakeFiles/CMakeError.log) { cat builds/CMakeFiles/CMakeError.log }