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

Commitbf56f97

Browse files
committed
Adjust CI configuration and remove coverage
1 parentef93fed commitbf56f97

File tree

3 files changed

+9
-55
lines changed

3 files changed

+9
-55
lines changed

‎.travis.yml

Lines changed: 6 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,6 @@ python:
77
-3.6
88

99
env:
10-
matrix:
11-
-BUILD_OPTS=--xplat NUNIT_PATH="~/.nuget/packages/nunit.consolerunner/3.*/tools/nunit3-console.exe" RUN_TESTS=dotnet EMBED_TESTS_PATH=netcoreapp2.0_publish/ PERF_TESTS_PATH=net461/
12-
-BUILD_OPTS="" NUNIT_PATH="./packages/NUnit.*/tools/nunit3-console.exe" RUN_TESTS="mono $NUNIT_PATH" EMBED_TESTS_PATH="" PERF_TESTS_PATH=""
13-
1410
global:
1511
-LD_PRELOAD=/lib/x86_64-linux-gnu/libSegFault.so
1612
-SEGFAULT_SIGNALS=all
@@ -27,9 +23,9 @@ addons:
2723
packages:
2824
-mono-devel
2925
-ca-certificates-mono
30-
-dotnet-hostfxr-2.2
31-
-dotnet-runtime-2.2
32-
-dotnet-sdk-2.2
26+
-dotnet-hostfxr-3.1
27+
-dotnet-runtime-3.1
28+
-dotnet-sdk-3.1
3329

3430
before_install:
3531
# Set-up dll path for embedded tests
@@ -39,20 +35,11 @@ before_install:
3935
install:
4036
-pip install --upgrade setuptools# TEMP - due to setuptools 36.2.0 bug
4137
-pip install --upgrade -r requirements.txt
42-
-coverage run setup.py install $BUILD_OPTS
38+
-python setup.py install $BUILD_OPTS
4339

4440
script:
4541
-python -m pytest
46-
-$RUN_TESTS src/embed_tests/bin/$EMBED_TESTS_PATH/Python.EmbeddingTest.dll --labels=All
42+
# TODO: Run tests also with Mono
43+
-dotnet test src/embed_tests
4744
# does not work on Linux, because NuGet package for 2.3 is Windows only
4845
# - "if [[ $TRAVIS_PYTHON_VERSION == '3.5' && $PERF_TESTS_PATH != '' ]]; then mono $NUNIT_PATH src/perf_tests/bin/$PERF_TESTS_PATH/Python.PerformanceTests.dll; fi"
49-
50-
after_script:
51-
# Waiting on mono-coverage, SharpCover or xr.Baboon
52-
-coverage xml -i
53-
-codecov --file coverage.xml --flags setup_linux
54-
55-
notifications:
56-
email:false
57-
slack:
58-
secure:"UiQdSK1/uNnHl8/gQgfLj/F5JGxtJuaT3QYtKNcw3Ddpr3FX8tfXJ/RjsCsSlRQzDm7AdBAeMzcBQmvH4iRIV2y7qVywLyru5MPiwY4ZjMN6fJK/zaaxetOct9fasIBYzHguNPDAtiBGFh2iK1H1MXTY8rkmU3WZvl18b8EsrP0="

‎appveyor.yml

Lines changed: 1 addition & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,6 @@ environment:
1515
CODECOV_ENV:PYTHON_VERSION, PLATFORM
1616

1717
matrix:
18-
-PYTHON_VERSION:3.8
19-
BUILD_OPTS:--xplat
20-
-PYTHON_VERSION:3.7
21-
BUILD_OPTS:--xplat
22-
-PYTHON_VERSION:3.6
23-
BUILD_OPTS:--xplat
2418
-PYTHON_VERSION:3.8
2519
-PYTHON_VERSION:3.7
2620
-PYTHON_VERSION:3.6
@@ -37,35 +31,15 @@ init:
3731
install:
3832
-python -m pip install -U pip
3933
-pip install --upgrade -r requirements.txt --quiet
40-
-pip install pycparser --quiet
41-
42-
# Install OpenCover. Can't put on `packages.config`, not Mono compatible
43-
-.\tools\nuget\nuget.exe install OpenCover -OutputDirectory packages -Verbosity quiet
4434

4535
build_script:
4636
# Create clean `sdist`. Only used for releases
4737
-python setup.py --quiet sdist
48-
# Build `wheel` with coverage of `setup.py`
49-
-coverage run setup.py bdist_wheel %BUILD_OPTS%
38+
-python setup.py bdist_wheel
5039

5140
test_script:
5241
-pip install --no-index --find-links=.\dist\ pythonnet
5342
-ps:.\ci\appveyor_run_tests.ps1
5443

55-
on_finish:
56-
# Temporary disable multiple upload due to codecov limit of 20 per commit.
57-
# https://docs.codecov.io/blog/week-8-2017
58-
-coverage xml -i
59-
# - codecov --file coverage.xml --flags setup_windows
60-
# - codecov --file py.coverage --flags python_tests
61-
# - codecov --file cs.coverage --flags embedded_tests
62-
-codecov --file py.coverage cs.coverage coverage.xml --flags setup_windows
63-
6444
artifacts:
6545
-path:dist\*
66-
-path:'.\src\runtime\bin\*.nupkg'
67-
68-
notifications:
69-
-provider:Slack
70-
incoming_webhook:
71-
secure:2S/t6rGHdbwoxehnvn5KgfsHrBFEtwnPD7M5olGErmz70oWFVpqoWd/EvDwh7rKZGdOTjDmpwcukc2xi5VRaGHbBAqFYS3tAdgAMrcaTNWs=

‎requirements.txt

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,5 @@
11
# Requirements for both Travis and AppVeyor
22
pytest==3.2.5
3-
coverage
43
psutil
5-
6-
# Coverage upload
7-
codecov
8-
9-
# Platform specific requirements
10-
# pip; sys_platform == 'win32'
11-
wheel;sys_platform=='win32'
12-
pycparser;sys_platform!='win32'
4+
pycparser
5+
wheel

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp