/breezy/3.0

To get this branch, use:
bzr branch https://code.breezy-vcs.org/breezy/3.0

« back to all changes in this revision

Viewing changes to appveyor.yml

  • Committer: Jelmer Vernooij
  • Date: 2019-03-05 07:32:38 UTC
  • mto: This revision was merged to the branch mainline in revision 7311.
  • Revision ID: jelmer@jelmer.uk-20190305073238-zlqn981opwnqsmzi
Add appveyor configuration.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
environment:
 
2
 
 
3
  matrix:
 
4
 
 
5
    - PYTHON: "C:\\Python27"
 
6
      PYTHON_VERSION: "2.7.x"
 
7
      PYTHON_ARCH: "32"
 
8
 
 
9
    - PYTHON: "C:\\Python27-x64"
 
10
      PYTHON_VERSION: "2.7.x"
 
11
      PYTHON_ARCH: "64"
 
12
 
 
13
    - PYTHON: "C:\\Python34"
 
14
      PYTHON_VERSION: "3.4.x"
 
15
      PYTHON_ARCH: "32"
 
16
 
 
17
    - PYTHON: "C:\\Python34-x64"
 
18
      PYTHON_VERSION: "3.4.x"
 
19
      PYTHON_ARCH: "64"
 
20
      DISTUTILS_USE_SDK: "1"
 
21
 
 
22
    - PYTHON: "C:\\Python35"
 
23
      PYTHON_VERSION: "3.5.x"
 
24
      PYTHON_ARCH: "32"
 
25
 
 
26
    - PYTHON: "C:\\Python35-x64"
 
27
      PYTHON_VERSION: "3.5.x"
 
28
      PYTHON_ARCH: "64"
 
29
 
 
30
    - PYTHON: "C:\\Python36"
 
31
      PYTHON_VERSION: "3.6.x"
 
32
      PYTHON_ARCH: "32"
 
33
 
 
34
    - PYTHON: "C:\\Python36-x64"
 
35
      PYTHON_VERSION: "3.6.x"
 
36
      PYTHON_ARCH: "64"
 
37
 
 
38
install:
 
39
  # If there is a newer build queued for the same PR, cancel this one.
 
40
  # The AppVeyor 'rollout builds' option is supposed to serve the same
 
41
  # purpose but it is problematic because it tends to cancel builds pushed
 
42
  # directly to master instead of just PR builds (or the converse).
 
43
  # credits: JuliaLang developers.
 
44
  - ps: if ($env:APPVEYOR_PULL_REQUEST_NUMBER -and $env:APPVEYOR_BUILD_NUMBER -ne ((Invoke-RestMethod `
 
45
        https://ci.appveyor.com/api/projects/$env:APPVEYOR_ACCOUNT_NAME/$env:APPVEYOR_PROJECT_SLUG/history?recordsNumber=50).builds | `
 
46
        Where-Object pullRequestId -eq $env:APPVEYOR_PULL_REQUEST_NUMBER)[0].buildNumber) { `
 
47
          throw "There are newer queued builds for this pull request, failing early." }
 
48
  - ECHO "Filesystem root:"
 
49
  - ps: "ls \"C:/\""
 
50
 
 
51
  - ECHO "Installed SDKs:"
 
52
  - ps: "ls \"C:/Program Files/Microsoft SDKs/Windows\""
 
53
 
 
54
  # Install Python (from the official .msi of http://python.org) and pip when
 
55
  # not already installed.
 
56
  - ps: if (-not(Test-Path($env:PYTHON))) { & appveyor\install.ps1 }
 
57
 
 
58
  # Prepend newly installed Python to the PATH of this build (this cannot be
 
59
  # done from inside the powershell script as it would require to restart
 
60
  # the parent CMD process).
 
61
  - "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%"
 
62
 
 
63
  # Check that we have the expected version and architecture for Python
 
64
  - "build.cmd %PYTHON%\\python.exe --version"
 
65
  - "build.cmd %PYTHON%\\python.exe -c \"import struct; print(struct.calcsize('P') * 8)\""
 
66
 
 
67
  # Install setuptools/wheel so that we can e.g. use bdist_wheel
 
68
  - "pip install setuptools wheel"
 
69
 
 
70
  - "build.cmd %PYTHON%\\python.exe setup.py develop"
 
71
 
 
72
build_script:
 
73
  # Build the compiled extension
 
74
  - "build.cmd %PYTHON%\\python.exe setup.py build"
 
75
 
 
76
test_script:
 
77
  - "build.cmd %PYTHON%\\python.exe setup.py test"
 
78
  - "build.cmd %PYTHON%\\pythonw.exe setup.py test"
 
79
 
 
80
after_test:
 
81
  - "build.cmd %PYTHON%\\python.exe setup.py bdist_wheel"
 
82
  # http://stackoverflow.com/questions/43255455/unicode-character-causing-error-with-bdist-wininst-on-python-3-but-not-python-2
 
83
  # - "python setup.py bdist_wininst"
 
84
  - "build.cmd %PYTHON%\\python.exe setup.py bdist_msi"
 
85
  - ps: "ls dist"
 
86
 
 
87
artifacts:
 
88
  - path: dist\*