Only check coverage on stable
This commit is contained in:
parent
b85e4cbe9a
commit
f4e1dc81b5
1 changed files with 3 additions and 1 deletions
|
|
@ -51,6 +51,7 @@ before_install:
|
|||
fi
|
||||
|
||||
after_success: |
|
||||
if [[ "$TRAVIS_OS_NAME" == "linux" && "$TRAVIS_RUST_VERSION" == "stable" ]]; then
|
||||
wget https://github.com/SimonKagstrom/kcov/archive/master.tar.gz &&
|
||||
tar xzf master.tar.gz &&
|
||||
cd kcov-master &&
|
||||
|
|
@ -63,4 +64,5 @@ after_success: |
|
|||
rm -rf kcov-master &&
|
||||
for file in target/debug/imap-*[^\.d]; do mkdir -p "target/cov/$(basename $file)"; ./kcov-build/usr/local/bin/kcov --exclude-pattern=/.cargo,/usr/lib --verify "target/cov/$(basename $file)" "$file"; done &&
|
||||
bash <(curl -s https://codecov.io/bash) &&
|
||||
echo "Uploaded code coverage"
|
||||
echo "Uploaded code coverage";
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue