@@ -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,26 +45,29 @@ init:
4745 - python -c "import ctypes; print(ctypes.sizeof(ctypes.c_wchar))"
4846
4947install :
50- # install conda and deps
51- - ps : .\ci\install_miniconda.ps1
48+ # install for wheels & coverage
49+ - pip install --upgrade pip wheel coverage codecov six
5250
53- # install for wheels
54- - pip install --upgrade pip wheel six
51+ # Install OpenCover. Can't put on packages.config; not Linux/Mono compatible
52+ - .\tools\nuget\nuget.exe install OpenCover -OutputDirectory packages
5553
5654build_script :
57- # build clean sdist & wheel
58- - python setup.py sdist bdist_wheel
59-
60- # build and dist conda package
61- - ' %CMD_IN_ENV% %CONDA_BLD%\Scripts\conda build conda.recipe'
62- - ps : $CONDA_PKG=(&"$env:CONDA_BLD\Scripts\conda" build conda.recipe --output -q)
63- - ps : Copy-Item $CONDA_PKG "$env:APPVEYOR_BUILD_FOLDER\dist\"
55+ # build clean sdist & wheel with coverage of setup.py, install local wheel
56+ - coverage run setup.py sdist bdist_wheel
6457
6558test_script :
6659 - pip install --no-index --find-links=.\dist\ pythonnet
6760 - ps : Copy-Item (Resolve-Path .\build\*\Python.Test.dll) C:\testdir
68- - python src\tests\runtests.py
69- # - "%NUNIT% src/embed_tests/bin/%PLATFORM%/ReleaseWin/Python.EmbeddingTest.dll"
61+
62+ # Test runner
63+ - ps : .\ci\appveyor_run_tests.ps1
64+
65+ # Build conda-recipe on Pull Requests
66+ - ps : .\ci\appveyor_build_recipe.ps1
67+
68+ on_finish :
69+ # Upload coverage
70+ - codecov
7071
7172artifacts :
7273 - path : dist\*
0 commit comments