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