| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -38,20 +38,11 @@ before_install: | |||
| 38 | 38 | - export LD_LIBRARY_PATH=$PY_LIBDIR:$LD_LIBRARY_PATH | |
| 39 | 39 | ||
| 40 | 40 | install: | |
| 41 | - - pip install --upgrade setuptools # TEMP - due to setuptools 36.2.0 bug | ||
| 42 | 41 | - pip install --upgrade -r requirements.txt | |
| 43 | - - coverage run setup.py install $BUILD_OPTS | ||
| 44 | 42 | ||
| 45 | 43 | script: | |
| 46 | 44 | - python -m pytest | |
| 47 | 45 | - $RUN_TESTS src/embed_tests/bin/$EMBED_TESTS_PATH/Python.EmbeddingTest.dll | |
| 48 | 46 | ||
| 49 | - after_script: | ||
| 50 | - # Waiting on mono-coverage, SharpCover or xr.Baboon | ||
| 51 | - - coverage xml -i | ||
| 52 | - - codecov --file coverage.xml --flags setup_linux | ||
| 53 | - | ||
| 54 | 47 | notifications: | |
| 55 | 48 | email: false | |
| 56 | - slack: | ||
| 57 | - secure: "UiQdSK1/uNnHl8/gQgfLj/F5JGxtJuaT3QYtKNcw3Ddpr3FX8tfXJ/RjsCsSlRQzDm7AdBAeMzcBQmvH4iRIV2y7qVywLyru5MPiwY4ZjMN6fJK/zaaxetOct9fasIBYzHguNPDAtiBGFh2iK1H1MXTY8rkmU3WZvl18b8EsrP0=" | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -3,7 +3,7 @@ pythonnet - Python for .NET | |||
| 3 | 3 | ||
| 4 | 4 | |Join the chat at https://gitter.im/pythonnet/pythonnet| | |
| 5 | 5 | ||
| 6 | - |appveyor shield| |travis shield| |codecov shield| | ||
| 6 | + |appveyor shield| |travis shield| | ||
| 7 | 7 | ||
| 8 | 8 | |license shield| |pypi package version| |conda-forge version| |python supported shield| | |
| 9 | 9 | |stackexchange shield| | |
@@ -101,8 +101,6 @@ https://github.com/pythonnet/pythonnet/wiki | |||
| 101 | 101 | :target: https://ci.appveyor.com/project/pythonnet/pythonnet/branch/master | |
| 102 | 102 | .. |travis shield| image:: https://img.shields.io/travis/pythonnet/pythonnet/master.svg?label=Travis | |
| 103 | 103 | :target: https://travis-ci.org/pythonnet/pythonnet | |
| 104 | - .. |codecov shield| image:: https://img.shields.io/codecov/c/github/pythonnet/pythonnet/master.svg?label=Codecov | ||
| 105 | - :target: https://codecov.io/github/pythonnet/pythonnet | ||
| 106 | 104 | .. |license shield| image:: https://img.shields.io/badge/license-MIT-blue.svg?maxAge=3600 | |
| 107 | 105 | :target: ./LICENSE | |
| 108 | 106 | .. |pypi package version| image:: https://img.shields.io/pypi/v/pythonnet.svg | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -47,34 +47,16 @@ install: | |||
| 47 | 47 | - python -m pip install -U pip | |
| 48 | 48 | - pip install --upgrade -r requirements.txt --quiet | |
| 49 | 49 | ||
| 50 | - # Install OpenCover. Can't put on `packages.config`, not Mono compatible | ||
| 51 | - - .\tools\nuget\nuget.exe install OpenCover -OutputDirectory packages -Verbosity quiet | ||
| 52 | - | ||
| 53 | 50 | build_script: | |
| 54 | 51 | # Create clean `sdist`. Only used for releases | |
| 55 | 52 | - python setup.py --quiet sdist | |
| 56 | - # Build `wheel` with coverage of `setup.py` | ||
| 57 | - - coverage run setup.py bdist_wheel %BUILD_OPTS% | ||
| 53 | + # Build `wheel` | ||
| 54 | + - python setup.py bdist_wheel %BUILD_OPTS% | ||
| 58 | 55 | ||
| 59 | 56 | test_script: | |
| 60 | 57 | - pip install --no-index --find-links=.\dist\ pythonnet | |
| 61 | 58 | - ps: .\ci\appveyor_run_tests.ps1 | |
| 62 | 59 | - ps: .\ci\appveyor_build_recipe.ps1 | |
| 63 | 60 | ||
| 64 | - on_finish: | ||
| 65 | - # Temporary disable multiple upload due to codecov limit of 20 per commit. | ||
| 66 | - # https://docs.codecov.io/blog/week-8-2017 | ||
| 67 | - - coverage xml -i | ||
| 68 | - # - codecov --file coverage.xml --flags setup_windows | ||
| 69 | - # - codecov --file py.coverage --flags python_tests | ||
| 70 | - # - codecov --file cs.coverage --flags embedded_tests | ||
| 71 | - - codecov --file py.coverage cs.coverage coverage.xml --flags setup_windows | ||
| 72 | - | ||
| 73 | 61 | artifacts: | |
| 74 | 62 | - path: dist\* | |
| 75 | - - path: '.\src\runtime\bin\*.nupkg' | ||
| 76 | - | ||
| 77 | - notifications: | ||
| 78 | - - provider: Slack | ||
| 79 | - incoming_webhook: | ||
| 80 | - secure: 2S/t6rGHdbwoxehnvn5KgfsHrBFEtwnPD7M5olGErmz70oWFVpqoWd/EvDwh7rKZGdOTjDmpwcukc2xi5VRaGHbBAqFYS3tAdgAMrcaTNWs= | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -8,9 +8,6 @@ if ($FALSE -and $env:PLATFORM -eq "x86"){ | |||
| 8 | 8 | $CS_RUNNER = $CS_RUNNER + "-x86" | |
| 9 | 9 | } | |
| 10 | 10 | ||
| 11 | - # Executable paths for OpenCover | ||
| 12 | - # Note if OpenCover fails, it won't affect the exit codes. | ||
| 13 | - $OPENCOVER = Resolve-Path .\packages\OpenCover.*\tools\OpenCover.Console.exe | ||
| 14 | 11 | if ($env:BUILD_OPTS -eq "--xplat"){ | |
| 15 | 12 | $CS_RUNNER = Resolve-Path $env:USERPROFILE\.nuget\packages\nunit.consolerunner\*\tools\"$CS_RUNNER".exe | |
| 16 | 13 | } | |
@@ -23,22 +20,17 @@ $PY = Get-Command python | |||
| 23 | 20 | $CS_TESTS = ".\src\embed_tests\bin\Python.EmbeddingTest.dll" | |
| 24 | 21 | $RUNTIME_DIR = ".\src\runtime\bin\" | |
| 25 | 22 | ||
| 26 | - # Run python tests with C# coverage | ||
| 23 | + # Run python tests | ||
| 27 | 24 | Write-Host ("Starting Python tests") -ForegroundColor "Green" | |
| 28 | - .$OPENCOVER -register:user -searchdirs:"$RUNTIME_DIR" -output:py.coverage ` | ||
| 29 | - -target:"$PY" -targetargs:"-m pytest" ` | ||
| 30 | - -returntargetcode | ||
| 25 | + .$PY -m pytest | ||
| 31 | 26 | $PYTHON_STATUS = $LastExitCode | |
| 32 | 27 | if ($PYTHON_STATUS -ne 0) { | |
| 33 | 28 | Write-Host "Python tests failed, continuing to embedded tests" -ForegroundColor "Red" | |
| 34 | 29 | } | |
| 35 | 30 | ||
| 36 | - # Run Embedded tests with C# coverage | ||
| 31 | + # Run Embedded tests | ||
| 37 | 32 | Write-Host ("Starting embedded tests") -ForegroundColor "Green" | |
| 38 | - .$OPENCOVER -register:user -searchdirs:"$RUNTIME_DIR" -output:cs.coverage ` | ||
| 39 | - -target:"$CS_RUNNER" -targetargs:"$CS_TESTS" ` | ||
| 40 | - -filter:"+[*]Python.Runtime*" ` | ||
| 41 | - -returntargetcode | ||
| 33 | + .$CS_RUNNER $CS_TESTS | ||
| 42 | 34 | $CS_STATUS = $LastExitCode | |
| 43 | 35 | if ($CS_STATUS -ne 0) { | |
| 44 | 36 | Write-Host "Embedded tests failed" -ForegroundColor "Red" | |
@@ -52,7 +44,7 @@ if ($env:BUILD_OPTS -eq "--xplat"){ | |||
| 52 | 44 | $DOTNET_CMD = "c:\Program Files (x86)\dotnet\dotnet" | |
| 53 | 45 | } | |
| 54 | 46 | ||
| 55 | - # Run Embedded tests for netcoreapp2.0 (OpenCover currently does not supports dotnet core) | ||
| 47 | + # Run Embedded tests for netcoreapp2.0 | ||
| 56 | 48 | Write-Host ("Starting embedded tests for netcoreapp2.0") -ForegroundColor "Green" | |
| 57 | 49 | &$DOTNET_CMD .\src\embed_tests\bin\netcoreapp2.0_publish\Python.EmbeddingTest.dll | |
| 58 | 50 | $CS_STATUS = $LastExitCode | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,11 +1,7 @@ | |||
| 1 | 1 | # Requirements for both Travis and AppVeyor | |
| 2 | - pytest==3.2.5 | ||
| 3 | - coverage | ||
| 2 | + pytest | ||
| 4 | 3 | psutil | |
| 5 | 4 | ||
| 6 | - # Coverage upload | ||
| 7 | - codecov | ||
| 8 | - | ||
| 9 | 5 | # Platform specific requirements | |
| 10 | 6 | # pip; sys_platform == 'win32' | |
| 11 | 7 | wheel; sys_platform == 'win32' | |
| Back | FazBrowse Home | New Git URL |
0 commit comments