You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
855 B
33 lines
855 B
sudo: required
|
|
language: rust
|
|
dist: trusty
|
|
addons:
|
|
apt:
|
|
packages:
|
|
- libssl-dev
|
|
cache: cargo
|
|
rust:
|
|
- stable
|
|
- beta
|
|
- nightly
|
|
before_script:
|
|
- |
|
|
if [[ "$TRAVIS_RUST_VERSION" == "nightly"* ]]; then rustup component add rustfmt-preview; fi
|
|
script:
|
|
- |
|
|
if [[ "$TRAVIS_RUST_VERSION" == "nightly"* ]]; then cargo fmt --all -- --check; fi
|
|
- cargo clean && cargo build
|
|
- cargo clean && cargo build --features toml
|
|
- cargo clean && cargo build --features all
|
|
- cargo clean && cargo test --features all
|
|
after_success: |
|
|
if [[ "$TRAVIS_RUST_VERSION" == stable ]]; then
|
|
RUSTFLAGS="--cfg procmacro2_semver_exempt" cargo install cargo-tarpaulin
|
|
cargo tarpaulin --ciserver travis-ci --coveralls $TRAVIS_JOB_ID --features toml
|
|
fi
|
|
matrix:
|
|
allow_failures:
|
|
- rust: nightly
|
|
notifications:
|
|
email:
|
|
on_success: never
|
|
|