summaryrefslogtreecommitdiff
path: root/appveyor.yml
blob: ddfc6efe0076bb4f0e49f49f80f03e6595b0f0c0 (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
environment:
  matrix:
    - PYTHON: 'C:\Python27'
    - PYTHON: 'C:\Python27-x64'
    - PYTHON: 'C:\Python34'
    - PYTHON: 'C:\Python35'
    - PYTHON: 'C:\Python35-x64'
    - PYTHON: 'C:\Python36'
    - PYTHON: 'C:\Python36-x64'
    - PYTHON: 'C:\Python37'
    - PYTHON: 'C:\Python37-x64'

artifacts:
  - {
    path: 'dist\*.egg',
    type: 'file'
  }
  - {
    path: 'dist\*.whl',
    type: 'file'
  }

install:
  # http://springflex.blogspot.co.uk/2014/02/how-to-fix-valueerror-when-trying-to.html. Works for 33-x64 only.
  - 'COPY "C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin\vcvars64.bat" "C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin\vcvarsamd64.bat"'
  - '%PYTHON%\scripts\pip.exe install wheel pytest .'

build_script:
  - '%PYTHON%\python.exe setup.py bdist_egg'
  - '%PYTHON%\python.exe setup.py bdist_wheel'

test_script:
  - 'cd tests'
  - '%PYTHON%\python.exe -m pytest .'