2017-08-09 22:16:49 +03:00
|
|
|
sudo: false
|
|
|
|
language: rust
|
|
|
|
cache: cargo
|
|
|
|
rust:
|
|
|
|
- stable
|
|
|
|
- beta
|
|
|
|
- nightly
|
|
|
|
|
2017-11-02 14:18:07 +03:00
|
|
|
matrix:
|
|
|
|
allow_failures:
|
|
|
|
- rust: nightly
|
|
|
|
|
2017-08-09 22:16:49 +03:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- build-essential
|
|
|
|
- libudev-dev
|
|
|
|
|
|
|
|
before_install:
|
|
|
|
- pkg-config --list-all
|
|
|
|
- pkg-config --libs libudev
|
|
|
|
- pkg-config --modversion libudev
|
2018-09-21 01:04:15 +03:00
|
|
|
|
|
|
|
install:
|
|
|
|
- rustup install nightly
|
|
|
|
- rustup component add --toolchain nightly rustfmt-preview
|
2017-08-09 22:16:49 +03:00
|
|
|
|
|
|
|
script:
|
|
|
|
- |
|
|
|
|
if [ "$TRAVIS_RUST_VERSION" == "nightly" ] ; then
|
|
|
|
export ASAN_OPTIONS="detect_odr_violation=1:leak_check_at_exit=0:detect_leaks=0"
|
|
|
|
export RUSTFLAGS="-Z sanitizer=address"
|
|
|
|
fi
|
2018-09-21 01:04:15 +03:00
|
|
|
- cargo +nightly fmt --all -- --check
|
|
|
|
- cargo build
|
|
|
|
- cargo test
|