Newer
Older
utest.h / appveyor.yml
@Neil Henning Neil Henning on 22 Jan 2021 1 KB Fix issue #52. (#54)
version: '{build}'

skip_tags: true
skip_branch_with_pr: true

install: []

environment:
  matrix:
    - VSVERSION: Visual Studio 9 2008
    - VSVERSION: Visual Studio 10 2010
    - VSVERSION: Visual Studio 11 2012
    - VSVERSION: Visual Studio 12 2013
    - VSVERSION: Visual Studio 14 2015
    - VSVERSION: Visual Studio 15 2017
      APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
    - VSVERSION: Visual Studio 16 2019
      APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019

platform:
  - Win32
  - x64

matrix:
  exclude:
    - platform: x64
      VSVERSION: Visual Studio 9 2008
    # VS 2019 / 64-bit is tested in GitHub Actions instead.
    - platform: x64
      VSVERSION: Visual Studio 16 2019

configuration:
  - Debug
  # Removed to reduce configuration explosion.
  # - RelWithDebInfo
  # - MinSizeRel
  - Release

build_script:
  - md build
  - cd build
  - if NOT "%VSVERSION%"=="Visual Studio 16 2019" if "%PLATFORM%"=="x64" cmake -G "%VSVERSION% Win64" ../test
  - if NOT "%VSVERSION%"=="Visual Studio 16 2019" if "%PLATFORM%"=="Win32" cmake -G "%VSVERSION%" ../test
  - if "%VSVERSION%"=="Visual Studio 16 2019" cmake -G "%VSVERSION%" -A "%PLATFORM%" ../test
  - msbuild /m /p:Configuration="%CONFIGURATION%" /p:Platform="%PLATFORM%" utest.sln
  - copy %CONFIGURATION%\utest_test.exe utest_test.exe
  - copy %CONFIGURATION%\utest_test_wpo.exe utest_test_wpo.exe

test_script:
  - utest_test.exe
  - utest_test_wpo.exe