]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/python/appveyor.yml
bump version to 12.2.2-pve1
[ceph.git] / ceph / src / boost / libs / python / appveyor.yml
1 environment:
2 global:
3 # SDK v7.0 MSVC Express 2008's SetEnv.cmd script will fail if the
4 # /E:ON and /V:ON options are not enabled in the batch script intepreter
5 # See: http://stackoverflow.com/a/13751649/163740
6 CMD_IN_ENV: "cmd /E:ON /V:ON /C .\\ci\\run_with_env.cmd"
7 BOOST_PREFIX: C:\Libraries\boost_1_60_0
8
9 matrix:
10
11 # Pre-installed Python versions, which Appveyor may upgrade to
12 # a later point release.
13 # See: http://www.appveyor.com/docs/installed-software#python
14
15 - PYTHON: "C:\\Python27"
16 PYTHON_VERSION: "2.7.x" # currently 2.7.9
17 PYTHON_ARCH: "32"
18 ARCH: "x86"
19
20 #- PYTHON: "C:\\Python27-x64"
21 # PYTHON_VERSION: "2.7.x" # currently 2.7.9
22 # PYTHON_ARCH: "64"
23 # ARCH: "x86_64"
24
25 #- PYTHON: "C:\\Python35"
26 # PYTHON_VERSION: "3.5.x" # currently 3.4.3
27 # PYTHON_ARCH: "32"
28
29 #- PYTHON: "C:\\Python35-x64"
30 # PYTHON_VERSION: "3.5.x" # currently 3.4.3
31 # PYTHON_ARCH: "64"
32
33 install:
34 # If there is a newer build queued for the same PR, cancel this one.
35 # The AppVeyor 'rollout builds' option is supposed to serve the same
36 # purpose but it is problematic because it tends to cancel builds pushed
37 # directly to master instead of just PR builds (or the converse).
38 # credits: JuliaLang developers.
39 - ps: if ($env:APPVEYOR_PULL_REQUEST_NUMBER -and $env:APPVEYOR_BUILD_NUMBER -ne ((Invoke-RestMethod `
40 https://ci.appveyor.com/api/projects/$env:APPVEYOR_ACCOUNT_NAME/$env:APPVEYOR_PROJECT_SLUG/history?recordsNumber=50).builds | `
41 Where-Object pullRequestId -eq $env:APPVEYOR_PULL_REQUEST_NUMBER)[0].buildNumber) { `
42 throw "There are newer queued builds for this pull request, failing early." }
43 - ECHO "Filesystem root:"
44 - ps: "ls \"C:/\""
45 - ECHO "Installed libraries:"
46 - ps: "ls \"C:/Libraries/\""
47 - ECHO "Installed SDKs:"
48 - ps: "ls \"C:/Program Files/Microsoft SDKs/Windows\""
49
50 # Install Python (from the official .msi of http://python.org) and pip when
51 # not already installed.
52 - ps: if (-not(Test-Path($env:PYTHON))) { & .ci\install.ps1 }
53
54 # Prepend newly installed Python to the PATH of this build (this cannot be
55 # done from inside the powershell script as it would require to restart
56 # the parent CMD process).
57 - "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%"
58
59 # Check that we have the expected version and architecture for Python
60 - "python --version"
61 - "python -c \"import struct; print(struct.calcsize('P') * 8)\""
62
63 # Upgrade to the latest version of pip to avoid it displaying warnings
64 # about it being out of date.
65 - "pip install --disable-pip-version-check --user --upgrade pip"
66
67 # Install the build dependencies of the project. If some dependencies contain
68 # compiled extensions and are not provided as pre-built wheel packages,
69 # pip will build them from source using the MSVC compiler matching the
70 # target Python version and architecture
71 - easy_install scons
72 #- "%CMD_IN_ENV% pip install -r dev-requirements.txt"
73
74 build_script:
75 # Build the compiled extension
76 #- "%CMD_IN_ENV% python setup.py build"
77 - scons config arch=%ARCH% --boost-include=%BOOST_PREFIX%
78 - scons arch=%ARCH%
79
80 test_script:
81 # Run the project tests
82 #- "%CMD_IN_ENV% python setup.py nosetests"
83 - scons test arch=%ARCH% --verbose
84
85 after_test:
86 # If tests are successful, create binary packages for the project.
87 #- "%CMD_IN_ENV% python setup.py bdist_wheel"
88 #- "%CMD_IN_ENV% python setup.py bdist_wininst"
89 #- "%CMD_IN_ENV% python setup.py bdist_msi"
90 #- ps: "ls dist"
91
92 #artifacts:
93 # Archive the generated packages in the ci.appveyor.com build report.
94 #- path: dist\*
95
96 #on_success:
97 # - TODO: upload the content of dist/*.whl to a public wheelhouse
98 #