mirror of
https://github.com/actix/actix-extras.git
synced 2025-02-02 18:59:04 +01:00
use tarpaulin from cache
This commit is contained in:
parent
6df85e32df
commit
a8f3dec527
22
.travis.yml
22
.travis.yml
@ -34,19 +34,9 @@ before_script:
|
|||||||
- export PATH=$PATH:~/.cargo/bin
|
- export PATH=$PATH:~/.cargo/bin
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- |
|
- cargo clean
|
||||||
if [[ "$TRAVIS_RUST_VERSION" != "nightly-2019-03-02" ]]; then
|
- cargo check
|
||||||
cargo clean
|
- cargo test -- --nocapture
|
||||||
cargo check
|
|
||||||
cargo test -- --nocapture
|
|
||||||
fi
|
|
||||||
- |
|
|
||||||
if [[ "$TRAVIS_RUST_VERSION" == "nightly-2019-03-02" ]]; then
|
|
||||||
RUSTFLAGS="--cfg procmacro2_semver_exempt" cargo install -f cargo-tarpaulin
|
|
||||||
RUST_BACKTRACE=1 cargo tarpaulin --out Xml
|
|
||||||
bash <(curl -s https://codecov.io/bash)
|
|
||||||
echo "Uploaded code coverage"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Upload docs
|
# Upload docs
|
||||||
after_success:
|
after_success:
|
||||||
@ -58,3 +48,9 @@ after_success:
|
|||||||
./ghp-import/ghp_import.py -n -p -f -m "Documentation upload" -r https://"$GH_TOKEN"@github.com/"$TRAVIS_REPO_SLUG.git" target/doc &&
|
./ghp-import/ghp_import.py -n -p -f -m "Documentation upload" -r https://"$GH_TOKEN"@github.com/"$TRAVIS_REPO_SLUG.git" target/doc &&
|
||||||
echo "Uploaded documentation"
|
echo "Uploaded documentation"
|
||||||
fi
|
fi
|
||||||
|
- |
|
||||||
|
if [[ "$TRAVIS_RUST_VERSION" == "nightly-2019-03-02" ]]; then
|
||||||
|
cargo tarpaulin --features="ssl" --out Xml
|
||||||
|
bash <(curl -s https://codecov.io/bash)
|
||||||
|
echo "Uploaded code coverage"
|
||||||
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user