rocket_cors/.travis.yml

41 lines
1.7 KiB
YAML
Raw Normal View History

2017-07-13 08:00:59 +00:00
sudo: false
language: rust
rust:
- nightly
# Minimum Rust set by Rocket
- nightly-2018-11-25
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"
2017-07-13 08:00:59 +00:00
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
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
- cargo clippy "${CARGO_FLAGS}" --all-targets -- -D warnings
- |
2018-12-19 00:51:09 +00:00
cargo build "${CARGO_FLAGS}" &&
cargo test "${CARGO_FLAGS}" &&
travis-cargo --only nightly doc -- --no-deps "${CARGO_FLAGS}"
2017-07-13 08:00:59 +00:00
after_success:
- test $CARGO_FLAGS = "--all-features" && travis-cargo --only nightly doc-upload