|
| 1 | +shallow_clone: true |
| 2 | + |
| 3 | +platform: |
| 4 | + - x86 |
| 5 | + - x64 |
| 6 | + |
| 7 | +configuration: |
| 8 | + - Debug |
| 9 | + - Release |
| 10 | + |
| 11 | +image: |
| 12 | + - Visual Studio 2013 |
| 13 | + - Visual Studio 2015 |
| 14 | + - Visual Studio 2017 |
| 15 | + - Visual Studio 2019 |
| 16 | + |
| 17 | +environment: |
| 18 | + matrix: |
| 19 | + - GLM_ARGUMENTS: -DGLM_TEST_FORCE_PURE=ON |
| 20 | + - GLM_ARGUMENTS: -DGLM_TEST_ENABLE_SIMD_SSE2=ON -DGLM_TEST_ENABLE_LANG_EXTENSIONS=ON |
| 21 | + - GLM_ARGUMENTS: -DGLM_TEST_ENABLE_SIMD_AVX=ON -DGLM_TEST_ENABLE_LANG_EXTENSIONS=ON |
| 22 | + - GLM_ARGUMENTS: -DGLM_TEST_ENABLE_SIMD_AVX=ON -DGLM_TEST_ENABLE_LANG_EXTENSIONS=ON -DGLM_TEST_ENABLE_CXX_14=ON |
| 23 | + - GLM_ARGUMENTS: -DGLM_TEST_ENABLE_SIMD_AVX=ON -DGLM_TEST_ENABLE_LANG_EXTENSIONS=ON -DGLM_TEST_ENABLE_CXX_17=ON |
| 24 | + |
| 25 | +matrix: |
| 26 | + exclude: |
| 27 | + - image: Visual Studio 2013 |
| 28 | + GLM_ARGUMENTS: -DGLM_TEST_ENABLE_SIMD_AVX=ON -DGLM_TEST_ENABLE_LANG_EXTENSIONS=ON |
| 29 | + - image: Visual Studio 2013 |
| 30 | + GLM_ARGUMENTS: -DGLM_TEST_ENABLE_SIMD_AVX=ON -DGLM_TEST_ENABLE_LANG_EXTENSIONS=ON -DGLM_TEST_ENABLE_CXX_14=ON |
| 31 | + - image: Visual Studio 2013 |
| 32 | + GLM_ARGUMENTS: -DGLM_TEST_ENABLE_SIMD_AVX=ON -DGLM_TEST_ENABLE_LANG_EXTENSIONS=ON -DGLM_TEST_ENABLE_CXX_17=ON |
| 33 | + - image: Visual Studio 2013 |
| 34 | + configuration: Debug |
| 35 | + - image: Visual Studio 2015 |
| 36 | + GLM_ARGUMENTS: -DGLM_TEST_ENABLE_SIMD_SSE2=ON -DGLM_TEST_ENABLE_LANG_EXTENSIONS=ON |
| 37 | + - image: Visual Studio 2015 |
| 38 | + GLM_ARGUMENTS: -DGLM_TEST_ENABLE_SIMD_AVX=ON -DGLM_TEST_ENABLE_LANG_EXTENSIONS=ON -DGLM_TEST_ENABLE_CXX_14=ON |
| 39 | + - image: Visual Studio 2015 |
| 40 | + GLM_ARGUMENTS: -DGLM_TEST_ENABLE_SIMD_AVX=ON -DGLM_TEST_ENABLE_LANG_EXTENSIONS=ON -DGLM_TEST_ENABLE_CXX_17=ON |
| 41 | + - image: Visual Studio 2015 |
| 42 | + platform: x86 |
| 43 | + - image: Visual Studio 2015 |
| 44 | + configuration: Debug |
| 45 | + - image: Visual Studio 2017 |
| 46 | + platform: x86 |
| 47 | + - image: Visual Studio 2017 |
| 48 | + configuration: Debug |
| 49 | + - image: Visual Studio 2019 |
| 50 | + platform: x64 |
| 51 | + |
| 52 | +before_build: |
| 53 | + - ps: | |
| 54 | + mkdir build |
| 55 | + cd build |
| 56 | +
|
| 57 | + if ("$env:APPVEYOR_JOB_NAME" -match "Image: Visual Studio 2013") { |
| 58 | + $env:generator="Visual Studio 12 2013" |
| 59 | + } |
| 60 | + if ("$env:APPVEYOR_JOB_NAME" -match "Image: Visual Studio 2015") { |
| 61 | + $env:generator="Visual Studio 14 2015" |
| 62 | + } |
| 63 | + if ("$env:APPVEYOR_JOB_NAME" -match "Image: Visual Studio 2017") { |
| 64 | + $env:generator="Visual Studio 15 2017" |
| 65 | + } |
| 66 | + if ("$env:APPVEYOR_JOB_NAME" -match "Image: Visual Studio 2019") { |
| 67 | + $env:generator="Visual Studio 16 2019" |
| 68 | + } |
| 69 | + if ($env:PLATFORM -eq "x64") { |
| 70 | + $env:generator="$env:generator Win64" |
| 71 | + } |
| 72 | + echo generator="$env:generator" |
| 73 | + cmake .. -G "$env:generator" -DGLM_QUIET=ON -DGLM_TEST_ENABLE=ON "$env:GLM_ARGUMENTS" |
| 74 | +
|
| 75 | +build_script: |
| 76 | + - cmake --build . --config %CONFIGURATION% -- /m /v:minimal |
| 77 | + |
| 78 | +test_script: |
| 79 | + - ctest -j4 -C %CONFIGURATION% |
| 80 | + - cd .. |
| 81 | + - ps: | |
| 82 | + mkdir build_test_cmake |
| 83 | + cd build_test_cmake |
| 84 | + cmake ..\test\cmake\ -G "$env:generator" -Dglm_DIR="$env:APPVEYOR_BUILD_FOLDER/cmake/glm/" |
| 85 | + - cmake --build . --config %CONFIGURATION% -- /m /v:minimal |
| 86 | + |
| 87 | +deploy: off |
0 commit comments