mirror of
https://github.com/open-telemetry/opentelemetry-python-contrib.git
synced 2025-07-28 04:34:01 +08:00
Update scripts for contrib repo
This commit is contained in:
@ -3,25 +3,13 @@
|
|||||||
set -e
|
set -e
|
||||||
|
|
||||||
function cov {
|
function cov {
|
||||||
if [ ${TOX_ENV_NAME:0:4} == "py34" ]
|
pytest \
|
||||||
then
|
--ignore-glob=*/setup.py \
|
||||||
pytest \
|
--cov ${1} \
|
||||||
--ignore-glob=*/setup.py \
|
--cov-append \
|
||||||
--ignore-glob=instrumentation/opentelemetry-instrumentation-opentracing-shim/tests/testbed/* \
|
--cov-branch \
|
||||||
--cov ${1} \
|
--cov-report='' \
|
||||||
--cov-append \
|
${1}
|
||||||
--cov-branch \
|
|
||||||
--cov-report='' \
|
|
||||||
${1}
|
|
||||||
else
|
|
||||||
pytest \
|
|
||||||
--ignore-glob=*/setup.py \
|
|
||||||
--cov ${1} \
|
|
||||||
--cov-append \
|
|
||||||
--cov-branch \
|
|
||||||
--cov-report='' \
|
|
||||||
${1}
|
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
PYTHON_VERSION=$(python -c 'import sys; print(".".join(map(str, sys.version_info[:3])))')
|
PYTHON_VERSION=$(python -c 'import sys; print(".".join(map(str, sys.version_info[:3])))')
|
||||||
@ -29,16 +17,10 @@ PYTHON_VERSION_INFO=(${PYTHON_VERSION//./ })
|
|||||||
|
|
||||||
coverage erase
|
coverage erase
|
||||||
|
|
||||||
cov opentelemetry-api
|
|
||||||
cov opentelemetry-sdk
|
|
||||||
cov exporter/opentelemetry-exporter-datadog
|
cov exporter/opentelemetry-exporter-datadog
|
||||||
cov instrumentation/opentelemetry-instrumentation-flask
|
cov instrumentation/opentelemetry-instrumentation-flask
|
||||||
cov instrumentation/opentelemetry-instrumentation-requests
|
cov instrumentation/opentelemetry-instrumentation-requests
|
||||||
cov exporter/opentelemetry-exporter-jaeger
|
|
||||||
cov instrumentation/opentelemetry-instrumentation-opentracing-shim
|
|
||||||
cov instrumentation/opentelemetry-instrumentation-wsgi
|
cov instrumentation/opentelemetry-instrumentation-wsgi
|
||||||
cov exporter/opentelemetry-exporter-zipkin
|
|
||||||
cov docs/examples/opentelemetry-example-app
|
|
||||||
|
|
||||||
# aiohttp is only supported on Python 3.5+.
|
# aiohttp is only supported on Python 3.5+.
|
||||||
if [ ${PYTHON_VERSION_INFO[1]} -gt 4 ]; then
|
if [ ${PYTHON_VERSION_INFO[1]} -gt 4 ]; then
|
||||||
|
Reference in New Issue
Block a user