@@ -10,7 +10,6 @@ environment:
1010 PYTHONUNBUFFERED : True
1111 PYTHONWARNINGS : ' ignore:::wheel.pep425tags:'
1212 PYTHONPATH : C:\testdir
13- NUNIT : nunit-console
1413 CONDA_BLD : C:\conda
1514 CONDA_BLD_VERSION : 3.5
1615
3534 - set CONDA_BLD_ARCH=%PLATFORM:x=%
3635 - set PYTHON=C:\PYTHON%PYTHON_VERSION:.=%
3736 - if %PLATFORM%==x86 (set CONDA_BLD_ARCH=32)
38- - if %PLATFORM%==x86 (set NUNIT=%NUNIT%-x86)
3937 - if %PLATFORM%==x64 (set PYTHON=%PYTHON%-x64)
4038
4139 # Prepend newly installed Python to the PATH of this build
@@ -47,21 +45,29 @@ init:
4745 - python -c "import ctypes; print(ctypes.sizeof(ctypes.c_wchar))"
4846
4947install :
50- # install for wheels
51- - pip install --upgrade pip wheel six
48+ # install for wheels & coverage
49+ - pip install --upgrade pip wheel coverage codecov six
50+
51+ # Install OpenCover. Can't put on packages.config; not Linux/Mono compatible
52+ - .\tools\nuget\nuget.exe install OpenCover -OutputDirectory packages
5253
5354build_script :
54- # build clean sdist & wheel
55- - python setup.py sdist bdist_wheel
55+ # build clean sdist & wheel with coverage of setup.py, install local wheel
56+ - coverage run setup.py sdist bdist_wheel
5657
5758test_script :
5859 - pip install --no-index --find-links=.\dist\ pythonnet
5960 - ps : Copy-Item (Resolve-Path .\build\*\Python.Test.dll) C:\testdir
60- - python src\tests\runtests.py
61- # - "%NUNIT% src/embed_tests/bin/%PLATFORM%/ReleaseWin/Python.EmbeddingTest.dll"
61+
62+ # Test runner
63+ - ps : .\ci\appveyor_run_tests.ps1
6264
6365 # Build conda-recipe on Pull Requests
6466 - ps : .\ci\appveyor_build_recipe.ps1
6567
68+ on_finish :
69+ # Upload coverage
70+ - codecov
71+
6672artifacts :
6773 - path : dist\*
0 commit comments