Merge pull request #1001 from PyO3/fix-cov

Use Nightly for coverage
This commit is contained in:
Yuji Kanagawa 2020-06-27 17:54:47 +09:00 committed by GitHub
commit f50d6d48e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 14 deletions

View File

@ -30,14 +30,12 @@ jobs:
python: "3.7"
env: FEATURES="pypy" PATH="$PATH:/opt/anaconda/envs/pypy3/bin"
allow_failures:
- name: Nightly
- python: 3.9-dev
env:
global:
- TRAVIS_RUST_VERSION=stable
- RUST_BACKTRACE=1
- RUN_LINT=0
before_install:
- source ./ci/travis/setup.sh
@ -56,23 +54,21 @@ deploy:
on:
branch: master
repo: PyO3/pyo3
python: 3.6
condition: $TRAVIS_EVENT_TYPE != "cron"
condition: $TRAVIS_JOB_NAME == "Nightly" && $TRAVIS_EVENT_TYPE != "cron"
- provider: script
script: ./ci/travis/guide.sh
edge: true
on:
branch: master
repo: PyO3/pyo3
python: 3.6
condition: $TRAVIS_EVENT_TYPE != "cron"
condition: $TRAVIS_JOB_NAME == "Python 3.7" && $TRAVIS_EVENT_TYPE != "cron"
- provider: script
script: ./ci/travis/guide.sh
edge: true
on:
tags: true
repo: PyO3/pyo3
python: 3.6
condition: $TRAVIS_JOB_NAME == "Python 3.7"
notifications:
email: false

View File

@ -2,12 +2,6 @@
set -ex
### PyPy does not run the test suite ###########################################
if [[ $FEATURES == *"pypy"* ]]; then
exit 0
fi
### Run grcov ##################################################################
# export env vars and re-run tests
export CARGO_INCREMENTAL=0
@ -18,4 +12,3 @@ cargo test --features "$FEATURES num-bigint num-complex"
zip -0 ccov.zip `find . \( -name "pyo3*.gc*" \) -print`;
./grcov ccov.zip -s . -t lcov --llvm --branch --ignore-not-existing --ignore "/*" -o lcov.info;
bash <(curl -s https://codecov.io/bash) -f lcov.info;