update appveyor script

This commit is contained in:
Balazs Benics 2019-07-28 12:18:16 +02:00
parent 3ae26b5430
commit 1aea83279c

View file

@ -1,48 +1,29 @@
version: "{branch} #{build}" build: false
shallow_clone: true
image:
- Visual Studio 2017
platform:
- Win32
- x64
configuration:
- Debug
- Release
build:
parallel: true
environment: environment:
matrix: PYTHON: "C:\\Python37"
- GENERATOR: "Visual Studio 15 2017"
matrix:
- MINGW_CONFIGURATIONS: '4.9@x86_64@seh@posix, 5@x86_64@seh@posix, 6@x86_64@seh@posix, 7@x86_64@seh@posix'
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
CONAN_VISUAL_VERSIONS: 14
CONAN_BUILD_TYPES: Release
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
CONAN_VISUAL_VERSIONS: 14
CONAN_BUILD_TYPES: Debug
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
CONAN_VISUAL_VERSIONS: 15
CONAN_BUILD_TYPES: Release
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
CONAN_VISUAL_VERSIONS: 15
CONAN_BUILD_TYPES: Debug
install: install:
# getting Catch2 library - set PATH=%PATH%;%PYTHON%/Scripts/
# redirect stderr to fix appveyor handling stderr - pip.exe install conan --upgrade
- ps: $env:GIT_REDIRECT_STDERR = '2>&1' - pip.exe install conan_package_tools
- ps: git clone https://github.com/catchorg/Catch2.git - conan user # It creates the conan data directory
- 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 ../..
before_build:
- if exist build RMDIR /S /Q build
- if not exist build mkdir build
- cd build
- pwd
- cmake -G "%GENERATOR%" -A %PLATFORM% -DCMAKE_INSTALL_PREFIX="C:/projects/nameof/Catch2/installed" ..
build_script:
- cmake --build . --config %CONFIGURATION%
test_script: test_script:
- ctest --output-on-failure -C %CONFIGURATION% - python build.py