-
Notifications
You must be signed in to change notification settings - Fork 772
Expand file tree
/
Copy pathappveyor.yml
More file actions
75 lines (59 loc) · 2.06 KB
/
appveyor.yml
File metadata and controls
75 lines (59 loc) · 2.06 KB
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
version: '{branch}-{build}'
build: off
platform:
- x86
- x64
environment:
global:
PYTHONUNBUFFERED: True
PYTHONWARNINGS: 'ignore:::wheel.pep425tags:'
PYTHONPATH: C:\testdir
NUNIT: nunit-console
CONDA_BLD: C:\conda
CONDA_BLD_VERSION: 3.5
# SDK v7.0 MSVC Express 2008's SetEnv.cmd script will fail if the
# /E:ON and /V:ON options are not enabled in the batch script interpreter
# See: http://stackoverflow.com/a/13751649/163740
CMD_IN_ENV: 'cmd /E:ON /V:ON /C .\ci\run_with_env.cmd'
matrix:
- PYTHON_VERSION: 2.7
- PYTHON_VERSION: 3.3
- PYTHON_VERSION: 3.4
- PYTHON_VERSION: 3.5
- PYTHON_VERSION: 3.6
init:
# Prepare environment
- mkdir C:\testdir
# Set environment variables depending based on build cfg
- set CONDA_PY=%PYTHON_VERSION:.=%
- set CONDA_BLD_ARCH=%PLATFORM:x=%
- set PYTHON=C:\PYTHON%PYTHON_VERSION:.=%
- if %PLATFORM%==x86 (set CONDA_BLD_ARCH=32)
- if %PLATFORM%==x86 (set NUNIT=%NUNIT%-x86)
- if %PLATFORM%==x64 (set PYTHON=%PYTHON%-x64)
# Prepend newly installed Python to the PATH of this build
- set PATH=%PYTHON%;%PYTHON%\Scripts;%PATH%
# Check that we have the expected version, architecture for Python
- python --version
- python -c "import struct; print(struct.calcsize('P') * 8)"
- python -c "import ctypes; print(ctypes.sizeof(ctypes.c_wchar))"
install:
# install for wheels & coverage
- pip install --upgrade pip wheel coverage codecov
# Install OpenCover. Can't put on packages.config; not Linux/Mono compatible
- .\tools\nuget\nuget.exe install OpenCover -OutputDirectory packages
build_script:
# build clean sdist & wheel with coverage of setup.py, install local wheel
- coverage run setup.py sdist bdist_wheel
test_script:
- pip install --no-index --find-links=.\dist\ pythonnet
- ps: Copy-Item (Resolve-Path .\build\*\Python.Test.dll) C:\testdir
# Test runner
- ps: .\ci\appveyor_run_tests.ps1
# Build conda-recipe on Pull Requests
- ps: .\ci\appveyor_build_recipe.ps1
on_finish:
# Upload coverage
- codecov
artifacts:
- path: dist\*