| 1 |
version: '{branch}.{build}' |
| 2 |
configuration: RelWithDebInfo |
| 3 |
environment: |
| 4 |
matrix: |
| 5 |
# https://www.appveyor.com/docs/build-environment/ |
| 6 |
# https://www.appveyor.com/docs/windows-images-software |
| 7 |
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019 |
| 8 |
CMAKE_GENERATOR: Visual Studio 16 2019 |
| 9 |
# TODO (jdanek) upgrade to Python 38 when it can be made to work; or whichever is latest at the time |
| 10 |
PYTHON: "C:\\Python37-x64" |
| 11 |
QPID_PROTON_CMAKE_ARGS: "-A x64" |
| 12 |
VCPKG_INTEGRATION: '-DCMAKE_TOOLCHAIN_FILE=C:/Tools/vcpkg/scripts/buildsystems/vcpkg.cmake' |
| 13 |
VCPKG_DEFAULT_TRIPLET: x64-windows |
| 14 |
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017 |
| 15 |
CMAKE_GENERATOR: Visual Studio 15 2017 |
| 16 |
CONFIGURATION: MinSizeRel |
| 17 |
PYTHON: "C:\\Python37-x64" |
| 18 |
QPID_PROTON_CMAKE_ARGS: "-A x64" |
| 19 |
QPID_PROTON_CTEST_ARGS: "-E tox" |
| 20 |
VCPKG_INTEGRATION: '-DCMAKE_TOOLCHAIN_FILE=C:/Tools/vcpkg/scripts/buildsystems/vcpkg.cmake' |
| 21 |
VCPKG_DEFAULT_TRIPLET: x64-windows |
| 22 |
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015 |
| 23 |
CMAKE_GENERATOR: Visual Studio 14 2015 |
| 24 |
PYTHON: "C:\\Python36-x64" |
| 25 |
QPID_PROTON_CMAKE_ARGS: "-A x64" |
| 26 |
# vcpkg is supported on VS2015, we are just not enabling the CMake integration |
| 27 |
# https://docs.microsoft.com/en-us/cpp/build/vcpkg?view=vs-2015 |
| 28 |
|
| 29 |
install: |
| 30 |
- cinst -y swig |
| 31 |
# https://www.appveyor.com/docs/lang/cpp/#vc-packaging-tool |
| 32 |
- cd C:\Tools\vcpkg |
| 33 |
- git pull |
| 34 |
- .\bootstrap-vcpkg.bat |
| 35 |
- cd %APPVEYOR_BUILD_FOLDER% |
| 36 |
- vcpkg install jsoncpp |
| 37 |
- vcpkg integrate install |
| 38 |
# https://pythonhosted.org/CodeChat/appveyor.yml.html |
| 39 |
- "%PYTHON%\\python.exe -m pip install --user --upgrade pip" |
| 40 |
- "%PYTHON%\\python.exe -m pip install --user --upgrade setuptools wheel tox" |
| 41 |
cache: |
| 42 |
- C:\ProgramData\chocolatey\bin -> .appveyor.yml |
| 43 |
- C:\ProgramData\chocolatey\lib -> .appveyor.yml |
| 44 |
- C:\Tools\vcpkg\installed -> .appveyor.yml |
| 45 |
before_build: |
| 46 |
- mkdir BLD |
| 47 |
- cd BLD |
| 48 |
- cmake %VCPKG_INTEGRATION% -G "%CMAKE_GENERATOR%" -DPython_EXECUTABLE=%PYTHON%\\python.exe %QPID_PROTON_CMAKE_ARGS% .. |
| 49 |
- cd .. |
| 50 |
build: |
| 51 |
project: BLD/Proton.sln |
| 52 |
parallel: true |
| 53 |
verbosity: normal |
| 54 |
test_script: |
| 55 |
- cd BLD |
| 56 |
- cmake --build . --target install --config %CONFIGURATION% |
| 57 |
- ctest -V -C %CONFIGURATION% %QPID_PROTON_CTEST_ARGS% |
| 58 |
- cd .. |