clap/.travis.yml

63 lines
1.6 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
2020-02-01 20:49:04 +00:00
branches:
only:
# This is where pull requests from "bors r+" are built.
- staging
# This is where pull requests from "bors try" are built.
- trying
# Enable building pull requests.
- master
- v2-master
2020-01-31 09:02:41 +00:00
jobs:
allow_failures:
- rust: nightly
2020-01-31 10:25:32 +00:00
- env:
- SHARD=coverage
2020-01-31 09:02:41 +00:00
fast_finish: true
include:
- os: osx
2020-01-31 10:27:37 +00:00
- {}
- rust: 1.36.0
2020-01-31 09:02:41 +00:00
- 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`."
2020-01-31 10:27:37 +00:00
- cargo clippy --all --lib --features "yaml unstable" -- -D warnings
- cargo clippy --all --tests --examples --features "yaml unstable"
2020-01-31 09:02:41 +00:00
- cargo fmt -- --check
2020-01-31 10:27:37 +00:00
- rust: nightly
env:
2020-01-31 09:02:41 +00:00
- SHARD=bench
script:
- cargo bench
2020-01-31 10:25:32 +00:00
- 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:
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
2020-01-31 10:25:32 +00:00
notifications:
email: false
env:
global:
- secure: JLBlgHY6OEmhJ8woewNJHmuBokTNUv7/WvLkJGV8xk0t6bXBwSU0jNloXwlH7FiQTc4TccX0PumPDD4MrMgxIAVFPmmmlQOCmdpYP4tqZJ8xo189E5zk8lKF5OyaVYCs5SMmFC3cxCsKjfwGIexNu3ck5Uhwe9jI0tqgkgM3URA=