chore: Add a shared library on Windows appveyor job

This also changes the Appveyor build to only build once, with tests,
instead of once without tests and once with tests.
This commit is contained in:
Robin Linden 2022-03-29 00:13:44 +02:00
parent 657d185de5
commit 6baabee695
No known key found for this signature in database
GPG Key ID: 601A604B7E605776

View File

@ -4,19 +4,29 @@ image: Visual Studio 2019
cache: cache:
- '%USERPROFILE%\.conan -> conanfile.py' - '%USERPROFILE%\.conan -> conanfile.py'
environment:
matrix:
- job_name: static
- job_name: shared
install: install:
- set PATH=C:\Python310-x64\Scripts;%PATH% - set PATH=C:\Python310-x64\Scripts;%PATH%
- py -3 -m pip install conan - py -3 -m pip install conan
before_build:
- git submodule update --init --recursive - git submodule update --init --recursive
- conan install -if _build .
for:
- matrix:
only:
- job_name: static
before_build:
- conan install -if _build -o with_tests=True .
- matrix:
only:
- job_name: shared
before_build:
- conan install -if _build -o with_tests=True -o shared=True .
build_script: build_script:
- conan build -bf _build -if _build .
test_script:
- set CONAN_CPU_COUNT=50 - set CONAN_CPU_COUNT=50
- set CTEST_OUTPUT_ON_FAILURE=1 - set CTEST_OUTPUT_ON_FAILURE=1
- conan install -if _build -o with_tests=True .
- conan build -bf _build -if _build . - conan build -bf _build -if _build .