@@ -10,7 +10,6 @@ environment:
10
10
PYTHONUNBUFFERED : True
11
11
PYTHONWARNINGS : ' ignore:::wheel.pep425tags:'
12
12
PYTHONPATH : C:\testdir
13
- NUNIT : nunit-console
14
13
CONDA_BLD : C:\conda
15
14
CONDA_BLD_VERSION : 3.5
16
15
35
34
- set CONDA_BLD_ARCH=%PLATFORM:x=%
36
35
- set PYTHON=C:\PYTHON%PYTHON_VERSION:.=%
37
36
- if %PLATFORM%==x86 (set CONDA_BLD_ARCH=32)
38
- - if %PLATFORM%==x86 (set NUNIT=%NUNIT%-x86)
39
37
- if %PLATFORM%==x64 (set PYTHON=%PYTHON%-x64)
40
38
41
39
# Prepend newly installed Python to the PATH of this build
@@ -47,26 +45,29 @@ init:
47
45
- python -c "import ctypes; print(ctypes.sizeof(ctypes.c_wchar))"
48
46
49
47
install :
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
52
50
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
55
53
56
54
build_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
64
57
65
58
test_script :
66
59
- pip install --no-index --find-links=.\dist\ pythonnet
67
60
- 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
70
71
71
72
artifacts :
72
73
- path : dist\*
0 commit comments