mirror of
https://github.com/clap-rs/clap
synced 2024-12-14 06:42:33 +00:00
chore: Update coverage job
This commit is contained in:
parent
2a6005657e
commit
8199e96268
1 changed files with 18 additions and 27 deletions
45
.travis.yml
45
.travis.yml
|
@ -5,6 +5,8 @@ rust: stable
|
|||
jobs:
|
||||
allow_failures:
|
||||
- rust: nightly
|
||||
- env:
|
||||
- SHARD=coverage
|
||||
fast_finish: true
|
||||
include:
|
||||
- os: osx
|
||||
|
@ -27,36 +29,25 @@ jobs:
|
|||
- SHARD=bench
|
||||
script:
|
||||
- cargo bench
|
||||
- env:
|
||||
- SHARD=coverage
|
||||
addons:
|
||||
apt:
|
||||
packages:
|
||||
- libssl-dev
|
||||
- cmake
|
||||
- pkg-config
|
||||
- zlib1g-dev
|
||||
update: true
|
||||
before_script:
|
||||
- cargo install cargo-tarpaulin
|
||||
script:
|
||||
- cargo tarpaulin --workspace --features "yaml unstable" --ciserver travis-ci --coveralls $TRAVIS_JOB_ID
|
||||
script:
|
||||
- cargo test --all --no-default-features
|
||||
- cargo test --all --features yaml unstable
|
||||
addons:
|
||||
apt:
|
||||
packages:
|
||||
- libcurl4-openssl-dev
|
||||
- libelf-dev
|
||||
- libdw-dev
|
||||
- cmake
|
||||
- gcc
|
||||
- binutils-dev
|
||||
update: true
|
||||
after_success:
|
||||
- |
|
||||
wget https://github.com/SimonKagstrom/kcov/archive/master.tar.gz &&
|
||||
tar xzf master.tar.gz &&
|
||||
cd kcov-master &&
|
||||
mkdir build &&
|
||||
cd build &&
|
||||
cmake .. &&
|
||||
make &&
|
||||
sudo make install &&
|
||||
cd ../.. &&
|
||||
rm -rf kcov-master &&
|
||||
cargo clean &&
|
||||
cargo test --no-run --features "yaml unstable" &&
|
||||
for file in target/debug/*-*; do mkdir -p "target/cov/$(basename $file)"; kcov --exclude-pattern=/.cargo --verify "target/cov/$(basename $file)" "$file"; done &&
|
||||
kcov --coveralls-id=$TRAVIS_JOB_ID --merge target/cov target/cov/* &&
|
||||
echo "Uploaded code coverage"
|
||||
notifications:
|
||||
email: false
|
||||
env:
|
||||
global:
|
||||
- secure: JLBlgHY6OEmhJ8woewNJHmuBokTNUv7/WvLkJGV8xk0t6bXBwSU0jNloXwlH7FiQTc4TccX0PumPDD4MrMgxIAVFPmmmlQOCmdpYP4tqZJ8xo189E5zk8lKF5OyaVYCs5SMmFC3cxCsKjfwGIexNu3ck5Uhwe9jI0tqgkgM3URA=
|
||||
|
|
Loading…
Reference in a new issue