2017-07-13 08:00:59 +00:00
|
|
|
sudo: false
|
|
|
|
language: rust
|
|
|
|
rust:
|
2018-07-18 05:07:31 +00:00
|
|
|
- nightly
|
|
|
|
# Minimum Rust set by Rocket
|
2018-12-04 04:01:29 +00:00
|
|
|
- nightly-2018-11-25
|
2018-07-18 05:07:31 +00:00
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- master
|
2018-02-14 05:22:43 +00:00
|
|
|
cache: cargo
|
2017-09-05 06:11:28 +00:00
|
|
|
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"
|
2017-07-13 08:00:59 +00:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- libcurl4-openssl-dev
|
|
|
|
- libelf-dev
|
|
|
|
- libdw-dev
|
|
|
|
before_script:
|
2018-07-18 05:07:31 +00:00
|
|
|
- |
|
|
|
|
pip install 'travis-cargo<0.2' --user &&
|
|
|
|
export PATH=$HOME/.local/bin:$PATH
|
|
|
|
# Remove rust-toolchain override for tests
|
|
|
|
- rm rust-toolchain
|
2018-12-19 00:51:09 +00:00
|
|
|
- rustup component add rustfmt
|
|
|
|
- rustup component add clippy || cargo install --git https://github.com/rust-lang/rust-clippy/ --force clippy
|
2017-07-13 08:00:59 +00:00
|
|
|
script:
|
2018-12-19 00:51:09 +00:00
|
|
|
- cargo fmt -- --check
|
2019-03-18 01:55:16 +00:00
|
|
|
- cargo clippy "${CARGO_FLAGS}" --all-targets -- -D warnings
|
2018-07-18 05:07:31 +00:00
|
|
|
- |
|
2018-12-19 00:51:09 +00:00
|
|
|
cargo build "${CARGO_FLAGS}" &&
|
|
|
|
cargo test "${CARGO_FLAGS}" &&
|
2018-07-18 05:07:31 +00:00
|
|
|
travis-cargo --only nightly doc -- --no-deps "${CARGO_FLAGS}"
|
2017-07-13 08:00:59 +00:00
|
|
|
after_success:
|
2018-07-18 05:07:31 +00:00
|
|
|
- test $CARGO_FLAGS = "--all-features" && travis-cargo --only nightly doc-upload
|