@@ -9,9 +9,7 @@ environment:
99 global :
1010 PYTHONUNBUFFERED : True
1111 PYTHONWARNINGS : ' ignore:::wheel.pep425tags:'
12- PYTHONPATH : C:\testdir
13- NUNIT : nunit3-console
14- CONDA_BLD : C:\miniconda35
12+ CODECOV_ENV : PYTHON_VERSION, PLATFORM
1513
1614 matrix :
1715 - PYTHON_VERSION : 2.7
@@ -21,50 +19,41 @@ environment:
2119 - PYTHON_VERSION : 3.6
2220
2321init :
24- # Prepare environment
22+ # Prepare Environment
2523 - mkdir C:\testdir
2624
27- # Set environment variables depending based on build cfg
28- - set CONDA_PY=%PYTHON_VERSION:.=%
29- - set CONDA_BLD_ARCH=%PLATFORM:x=%
30- - set PYTHON=C:\PYTHON%PYTHON_VERSION:.=%
31- - if %PLATFORM%==x86 (set CONDA_BLD_ARCH=32)
32- # - if %PLATFORM%==x86 (set NUNIT=%NUNIT%-x86)
25+ # Update Environment Variables based on matrix/platform
26+ - set PY_VER=%PYTHON_VERSION:.=%
27+ - set PYTHON=C:\PYTHON%PY_VER%
3328 - if %PLATFORM%==x64 (set PYTHON=%PYTHON%-x64)
34- - if %PLATFORM%==x64 (set CONDA_BLD=%CONDA_BLD%-x64)
3529
36- # Prepend newly installed Python to the PATH of this build
30+ # Put desired Python version first in PATH
3731 - set PATH=%PYTHON%;%PYTHON%\Scripts;%PATH%
3832
39- # Check that we have the expected version, architecture for Python
40- - python --version
41- - python -c "import struct; print(struct.calcsize('P') * 8)"
42- - python -c "import ctypes; print(ctypes.sizeof(ctypes.c_wchar))"
43-
4433install :
45- # install for wheels & coverage
46- - pip install --upgrade pip wheel coverage codecov pytest
34+ - pip install --upgrade -r requirements.txt
4735
48- # Install OpenCover. Can't put on packages.config; not Linux/ Mono compatible
36+ # Install OpenCover. Can't put on ` packages.config`, not Mono compatible
4937 - .\tools\nuget\nuget.exe install OpenCover -OutputDirectory packages
5038
5139build_script :
52- # build clean sdist & wheel with coverage of setup.py, install local wheel
53- - coverage run setup.py sdist bdist_wheel
40+ # Create clean `sdist`. Only used for releases
41+ - python setup.py --quiet sdist
42+ # Build `wheel` with coverage of `setup.py`
43+ - coverage run setup.py bdist_wheel
5444
5545test_script :
5646 - pip install --no-index --find-links=.\dist\ pythonnet
57- - ps : Copy-Item (Resolve-Path .\build\*\ Python.Test.dll) C:\testdir
47+ - ps : Copy-Item .\src\testing\bin\ Python.Test.dll C:\testdir\
5848
59- # Test runner
6049 - ps : .\ci\appveyor_run_tests.ps1
61-
62- # Build conda-recipe on Pull Requests
6350 - ps : .\ci\appveyor_build_recipe.ps1
6451
6552on_finish :
66- # Upload coverage
67- - codecov
53+ - coverage xml -i
54+ - codecov --file coverage.xml --flags Setup_Windows
55+ - codecov --file py.coverage --flags Python_Tests
56+ - codecov --file cs.coverage --flags Embedded_Tests
6857
6958artifacts :
7059 - path : dist\*
0 commit comments