nameof_module/.appveyor.yml

49 lines
1 KiB
YAML
Raw Normal View History

2018-04-08 17:27:41 +00:00
version: "{branch} #{build}"
2018-08-13 11:29:26 +00:00
shallow_clone: true
2018-04-30 03:00:05 +00:00
image:
- Visual Studio 2017
2018-04-08 17:27:41 +00:00
platform:
2018-08-07 19:56:14 +00:00
- Win32
2018-04-08 17:27:41 +00:00
- x64
configuration:
- Debug
2018-05-25 14:07:50 +00:00
- Release
2018-04-08 17:27:41 +00:00
2018-08-13 11:29:26 +00:00
build:
parallel: true
2018-04-08 17:27:41 +00:00
environment:
matrix:
2018-04-30 03:00:05 +00:00
- GENERATOR: "Visual Studio 15 2017"
2018-04-08 17:27:41 +00:00
2019-07-27 17:56:00 +00:00
install:
# getting Catch2 library
# redirect stderr to fix appveyor handling stderr
- ps: $env:GIT_REDIRECT_STDERR = '2>&1'
- ps: git clone https://github.com/catchorg/Catch2.git
- ps: cd Catch2
- ps: git checkout v2.9.1
- ps: mkdir build
- ps: cd build
- ps: pwd
- ps: cmake -DCATCH_BUILD_TESTING=OFF -DCATCH_INSTALL_DOCS=OFF -DCATCH_INSTALL_HELPERS=OFF -DCMAKE_INSTALL_PREFIX="$PWD/../installed" ..
- ps: cmake --build . --target install --config Release
- ps: cd ../..
2018-04-08 17:27:41 +00:00
before_build:
- if exist build RMDIR /S /Q build
- if not exist build mkdir build
- cd build
2019-07-27 17:56:00 +00:00
- pwd
- cmake -G "%GENERATOR%" -A %PLATFORM% -DCMAKE_INSTALL_PREFIX="C:/projects/nameof/Catch2/installed" ..
2018-04-08 17:27:41 +00:00
build_script:
- cmake --build . --config %CONFIGURATION%
test_script:
2018-08-13 11:29:26 +00:00
- ctest --output-on-failure -C %CONFIGURATION%