40 lines
1.7 KiB
YAML
40 lines
1.7 KiB
YAML
sudo: false
|
|
language: rust
|
|
rust:
|
|
- nightly
|
|
- nightly-2019-05-21 # Minimum supported
|
|
branches:
|
|
only:
|
|
- master
|
|
cache: cargo
|
|
env:
|
|
global:
|
|
- TRAVIS_CARGO_NIGHTLY_FEATURE=""
|
|
- secure: dig1qv7Qc4IrAKoszmetgU1qyMnd5bPZC+jpgKaiimDX5mGiJJB3qHWql6+jeR5JDEcFGKE8/oFMkCtg78E6Gv6FcJ6qwB3Ks4MRfZlLmTPcwPj0pf6789M9FRnTsPMp3HHmeoVsfM4ujZYgk3Az+bDU4En6/8U4RCdl0CAmRGwMt9QtKzSygiHivCs/BpqkQ+Coq0HezaYDzBrNF3Q0gsxgy+5DALwSaQqAsKatb73w7i4EuyzrgfPW8OvkUj3i2Zc2zuY8FCElZY1H7igQK4P/EFyKyiRbyTzVsvwbqBwPPQuVzT8wwmOqcCmQACnuLD9EiF0iP2sAtWTJ0H2HosptVqxQbqmsvGHLzAza1jb1buLBgeIvPwDRP1sQmxVRgD1JkzRiZkt8EwN6MYzqtmfPA32Aukoji47n1zmyombJlAKkC8gKSXc6XTByOXcFNcYQ0BbyT9Tngn9K+YZUmSG/Wf33GKOCQc80I07FnOOsfYUpU43Vjv7xuFdyJn9vS9nxZzhZURQzrfJg4mgcqOTRGHIFGHdvrnVzDJX60gWQMoRadLjLoknGH86BUScmEJ0dWwhHS8dBeYboTNJuiW2EQtcnvDawQ8F79bhyNLVhM2ICoaf9Rok/lMjLUEN+6HzOGzw/rQYtJaJ6trF5CFwZIf3q2kHbW6wybwU/KTg=
|
|
matrix:
|
|
- CARGO_FLAGS="--all-features"
|
|
- CARGO_FLAGS="--no-default-features"
|
|
addons:
|
|
apt:
|
|
packages:
|
|
- libcurl4-openssl-dev
|
|
- libelf-dev
|
|
- libdw-dev
|
|
before_script:
|
|
- |
|
|
pip install 'travis-cargo<0.2' --user &&
|
|
export PATH=$HOME/.local/bin:$PATH
|
|
# Remove rust-toolchain override for tests
|
|
- rm rust-toolchain
|
|
- rustup component add rustfmt
|
|
- rustup component add clippy || cargo install --git https://github.com/rust-lang/rust-clippy/ --force clippy
|
|
script:
|
|
- cargo fmt -- --check
|
|
- cargo clippy "${CARGO_FLAGS}" --all-targets -- -D warnings
|
|
- |
|
|
cargo build "${CARGO_FLAGS}" &&
|
|
cargo test "${CARGO_FLAGS}" &&
|
|
travis-cargo --only nightly doc -- --no-deps "${CARGO_FLAGS}"
|
|
after_success:
|
|
- test $CARGO_FLAGS = "--all-features" && travis-cargo --only nightly doc-upload
|