clap/.travis.yml

65 lines
1.7 KiB
YAML
Raw Normal View History

2020-01-31 09:02:41 +00:00
os: linux
2015-03-01 20:46:46 +00:00
language: rust
2020-01-31 09:02:41 +00:00
cache: cargo
rust: stable
env:
global:
- SHARD=test
jobs:
allow_failures:
- rust: nightly
- env:
- SHARD=lint
fast_finish: true
include:
- os: osx
- rust: 1.33
- rust: beta
- rust: nightly
- env:
- SHARD=lint
before_script:
- rustup component add clippy
- rustup component add rustfmt
script:
- echo "Checking codebase with Clippy release `cargo clippy --version`."
- cargo clippy --all --all-targets --all-features -- -D warnings
- cargo fmt -- --check
- env:
- SHARD=bench
script:
- cargo bench
script:
2020-01-31 09:02:41 +00:00
- cargo test --all --no-default-features
2020-01-31 09:05:34 +00:00
- cargo test --all --features yaml unstable
addons:
apt:
packages:
2020-01-31 09:02:41 +00:00
- libcurl4-openssl-dev
- libelf-dev
- libdw-dev
- cmake
- gcc
- binutils-dev
update: true
after_success:
2015-09-02 18:51:37 +00:00
- |
2016-10-31 19:09:30 +00:00
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 &&
2019-06-19 22:49:09 +00:00
cargo test --no-run --features "yaml unstable" &&
2016-11-02 01:47:14 +00:00
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/* &&
2016-10-31 19:09:30 +00:00
echo "Uploaded code coverage"
env:
global:
- secure: JLBlgHY6OEmhJ8woewNJHmuBokTNUv7/WvLkJGV8xk0t6bXBwSU0jNloXwlH7FiQTc4TccX0PumPDD4MrMgxIAVFPmmmlQOCmdpYP4tqZJ8xo189E5zk8lKF5OyaVYCs5SMmFC3cxCsKjfwGIexNu3ck5Uhwe9jI0tqgkgM3URA=