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
|
|
|
|
fast_finish: true
|
|
|
|
include:
|
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-05-02 12:11:50 +00:00
|
|
|
script:
|
|
|
|
- cargo test --no-default-features --features "std cargo" -p clap:3.0.0-beta.1
|
|
|
|
- cargo test --features "yaml unstable doc"
|
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
|
2020-05-02 18:33:32 +00:00
|
|
|
- cargo clippy --tests --examples --features "yaml unstable" -- -D warnings
|
2020-01-31 09:02:41 +00:00
|
|
|
- cargo fmt -- --check
|
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:
|
2020-04-12 22:17:01 +00:00
|
|
|
- cargo install cargo-tarpaulin
|
2020-01-31 10:25:32 +00:00
|
|
|
script:
|
2020-04-11 16:09:05 +00:00
|
|
|
- cargo tarpaulin --workspace --features "yaml unstable" --ciserver travis-ci --coveralls $TRAVIS_JOB_ID --timeout 300
|
2015-04-28 01:39:17 +00:00
|
|
|
script:
|
2020-04-12 01:36:20 +00:00
|
|
|
- cargo test --no-default-features --features "std cargo" -p clap:3.0.0-beta.1
|
2020-04-10 14:45:29 +00:00
|
|
|
- cargo test --features "yaml unstable"
|
2020-01-31 10:25:32 +00:00
|
|
|
notifications:
|
|
|
|
email: false
|
2015-04-29 02:43:20 +00:00
|
|
|
env:
|
|
|
|
global:
|
2016-01-30 02:28:12 +00:00
|
|
|
- secure: JLBlgHY6OEmhJ8woewNJHmuBokTNUv7/WvLkJGV8xk0t6bXBwSU0jNloXwlH7FiQTc4TccX0PumPDD4MrMgxIAVFPmmmlQOCmdpYP4tqZJ8xo189E5zk8lKF5OyaVYCs5SMmFC3cxCsKjfwGIexNu3ck5Uhwe9jI0tqgkgM3URA=
|