summaryrefslogtreecommitdiff
path: root/appveyor.yml
blob: 7613e62ba8c03c62e08a08db7ad2d3f3a28cf7dd (plain)
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
environment:
  matrix:
    - PYTHON: "C:\\Python27"
      TOXENV: "py27"

    - PYTHON: "C:\\Python33"
      TOXENV: "py33"

    - PYTHON: "C:\\Python34"
      TOXENV: "py34"

install:
  - ECHO "Filesystem root:"
  - ps: "ls \"C:/\""

  # Install  pip when not already installed.
  - "powershell ./appveyor/install.ps1"

  # Prepend newly installed Python to the PATH of this build (this cannot be
  # done from inside the powershell script as it would require to restart
  # the parent CMD process).
  - "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%"

  # Check that we have the expected version and architecture for Python
  - "python --version"
  - "python -c \"import struct; print(struct.calcsize('P') * 8)\""

  # Install the build dependencies of the project.
  - "pip install tox==1.7.2"
  - "pip install wheel"

build: false

test_script:
  - "tox"

after_test:
  # If tests are successful, create a whl package for the project.
  - "python setup.py bdist_wheel bdist_wininst"
  - ps: "ls dist"

artifacts:
  # Archive the generated wheel package in the ci.appveyor.com build report.
  - path: dist\*