clap/.travis.yml

73 lines
2.5 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
2020-02-02 19:11:41 +00:00
before_cache:
- find target/debug -type f -maxdepth 1 -delete
- rm -rf target/.rustc_info.json
- rm -rf target/debug/examples
- rm -rf target/debug/incremental
- rm -rf target/tests/target/debug/incremental
- rm -rf target/tests/target/debug/deps/{clap*, trybuild*}
- rm -rf target/debug/{deps,.fingerpint}/clap*
- find target/debug/deps -name "clap*" -exec rm -rf {} +
- ls -1 examples/ | sed -e 's/\.rs$//' | xargs -I "{{}}" find target/debug/deps -name "{{}}*" -exec rm -rf {} +
- ls -1 clap_derive/examples/ | sed -e 's/\.rs$//' | xargs -I "{{}}" find target/debug/deps -name "{{}}*" -exec rm -rf {} +
- ls -1 tests/ | sed -e 's/\.rs$//' | xargs -I "{{}}" find target/debug/deps -name "{{}}*" -exec rm -rf {} +
- ls -1 clap_derive/tests/ | sed -e 's/\.rs$//' | xargs -I "{{}}" find target/debug/deps -name "{{}}*" -exec rm -rf {} +
2020-01-31 09:02:41 +00:00
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
2020-02-02 19:11:41 +00:00
# Always build master & Enable building pull requests.
2020-02-01 20:49:04 +00:00
- master
2020-01-31 09:02:41 +00:00
jobs:
allow_failures:
- rust: nightly
- name: Benchmarking
2020-02-21 00:23:52 +00:00
- name: Coverage
2020-01-31 09:02:41 +00:00
fast_finish: true
include:
- os: osx
2020-02-02 19:11:41 +00:00
rust: 1.36.0
2020-01-31 10:27:37 +00:00
- rust: 1.36.0
2020-02-02 19:11:41 +00:00
- {}
2020-01-31 09:02:41 +00:00
- rust: beta
- rust: nightly
2020-03-01 21:55:57 +00:00
cache: false
2020-02-21 00:23:52 +00:00
- name: Linting (fmt + clippy)
2020-01-31 09:02:41 +00:00
before_script:
- rustup component add clippy
- rustup component add rustfmt
script:
- echo "Checking codebase with Clippy release `cargo clippy --version`."
2020-02-03 10:29:57 +00:00
- cargo clippy --lib --features "yaml unstable" -- -D warnings
- cargo clippy --tests --examples --features "yaml unstable"
2020-01-31 09:02:41 +00:00
- cargo fmt -- --check
2020-02-21 15:18:47 +00:00
- name: Benchmarking
2020-01-31 09:02:41 +00:00
script:
- cargo bench
2020-02-21 00:23:52 +00:00
- name: Coverage
2020-01-31 10:25:32 +00:00
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-02-03 10:29:57 +00:00
- cargo test --no-default-features
- cargo test --features yaml unstable
2020-01-31 10:25:32 +00:00
notifications:
email: false
env:
global:
- secure: JLBlgHY6OEmhJ8woewNJHmuBokTNUv7/WvLkJGV8xk0t6bXBwSU0jNloXwlH7FiQTc4TccX0PumPDD4MrMgxIAVFPmmmlQOCmdpYP4tqZJ8xo189E5zk8lKF5OyaVYCs5SMmFC3cxCsKjfwGIexNu3ck5Uhwe9jI0tqgkgM3URA=