Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit8b71e1b

Browse files
committed
Drop coverage testing for now
1 parent725ee97 commit8b71e1b

File tree

5 files changed

+9
-50
lines changed

5 files changed

+9
-50
lines changed

‎.travis.yml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -38,20 +38,11 @@ before_install:
3838
-export LD_LIBRARY_PATH=$PY_LIBDIR:$LD_LIBRARY_PATH
3939

4040
install:
41-
-pip install --upgrade setuptools# TEMP - due to setuptools 36.2.0 bug
4241
-pip install --upgrade -r requirements.txt
43-
-coverage run setup.py install $BUILD_OPTS
4442

4543
script:
4644
-python -m pytest
4745
-$RUN_TESTS src/embed_tests/bin/$EMBED_TESTS_PATH/Python.EmbeddingTest.dll
4846

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-
5447
notifications:
5548
email:false
56-
slack:
57-
secure:"UiQdSK1/uNnHl8/gQgfLj/F5JGxtJuaT3QYtKNcw3Ddpr3FX8tfXJ/RjsCsSlRQzDm7AdBAeMzcBQmvH4iRIV2y7qVywLyru5MPiwY4ZjMN6fJK/zaaxetOct9fasIBYzHguNPDAtiBGFh2iK1H1MXTY8rkmU3WZvl18b8EsrP0="

‎README.rst

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ pythonnet - Python for .NET
33

44
|Join the chat at https://gitter.im/pythonnet/pythonnet|
55

6-
|appveyor shield| |travis shield| |codecov shield|
6+
|appveyor shield| |travis shield|
77

88
|license shield| |pypi package version| |conda-forge version| |python supported shield|
99
|stackexchange shield|
@@ -101,8 +101,6 @@ https://github.com/pythonnet/pythonnet/wiki
101101
:target:https://ci.appveyor.com/project/pythonnet/pythonnet/branch/master
102102
.. |travis shield|image::https://img.shields.io/travis/pythonnet/pythonnet/master.svg?label=Travis
103103
: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
106104
.. |license shield|image::https://img.shields.io/badge/license-MIT-blue.svg?maxAge=3600
107105
:target:./LICENSE
108106
.. |pypi package version|image::https://img.shields.io/pypi/v/pythonnet.svg

‎appveyor.yml

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -47,34 +47,16 @@ install:
4747
-python -m pip install -U pip
4848
-pip install --upgrade -r requirements.txt --quiet
4949

50-
# Install OpenCover. Can't put on `packages.config`, not Mono compatible
51-
-.\tools\nuget\nuget.exe install OpenCover -OutputDirectory packages -Verbosity quiet
52-
5350
build_script:
5451
# Create clean `sdist`. Only used for releases
5552
-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%
5855

5956
test_script:
6057
-pip install --no-index --find-links=.\dist\ pythonnet
6158
-ps:.\ci\appveyor_run_tests.ps1
6259
-ps:.\ci\appveyor_build_recipe.ps1
6360

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-
7361
artifacts:
7462
-path:dist\*
75-
-path:'.\src\runtime\bin\*.nupkg'
76-
77-
notifications:
78-
-provider:Slack
79-
incoming_webhook:
80-
secure:2S/t6rGHdbwoxehnvn5KgfsHrBFEtwnPD7M5olGErmz70oWFVpqoWd/EvDwh7rKZGdOTjDmpwcukc2xi5VRaGHbBAqFYS3tAdgAMrcaTNWs=

‎ci/appveyor_run_tests.ps1

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@ if ($FALSE -and $env:PLATFORM -eq "x86"){
88
$CS_RUNNER=$CS_RUNNER+"-x86"
99
}
1010

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
1411
if ($env:BUILD_OPTS-eq"--xplat"){
1512
$CS_RUNNER=Resolve-Path$env:USERPROFILE\.nuget\packages\nunit.consolerunner\*\tools\"$CS_RUNNER".exe
1613
}
@@ -23,22 +20,17 @@ $PY = Get-Command python
2320
$CS_TESTS=".\src\embed_tests\bin\Python.EmbeddingTest.dll"
2421
$RUNTIME_DIR=".\src\runtime\bin\"
2522

26-
# Run python tests with C# coverage
23+
# Run python tests
2724
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
3126
$PYTHON_STATUS=$LastExitCode
3227
if ($PYTHON_STATUS-ne0) {
3328
Write-Host"Python tests failed, continuing to embedded tests"-ForegroundColor"Red"
3429
}
3530

36-
# Run Embedded tests with C# coverage
31+
# Run Embedded tests
3732
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
4234
$CS_STATUS=$LastExitCode
4335
if ($CS_STATUS-ne0) {
4436
Write-Host"Embedded tests failed"-ForegroundColor"Red"
@@ -52,7 +44,7 @@ if ($env:BUILD_OPTS -eq "--xplat"){
5244
$DOTNET_CMD="c:\Program Files (x86)\dotnet\dotnet"
5345
}
5446

55-
# Run Embedded tests for netcoreapp2.0 (OpenCover currently does not supports dotnet core)
47+
# Run Embedded tests for netcoreapp2.0
5648
Write-Host ("Starting embedded tests for netcoreapp2.0")-ForegroundColor"Green"
5749
&$DOTNET_CMD .\src\embed_tests\bin\netcoreapp2.0_publish\Python.EmbeddingTest.dll
5850
$CS_STATUS=$LastExitCode

‎requirements.txt

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
# Requirements for both Travis and AppVeyor
2-
pytest==3.2.5
3-
coverage
2+
pytest
43
psutil
54

6-
# Coverage upload
7-
codecov
8-
95
# Platform specific requirements
106
# pip; sys_platform == 'win32'
117
wheel;sys_platform=='win32'

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp