Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 27 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,36 @@
sudo: false
language: rust
rust:
- stable
- beta
- nightly
script:
- cargo test --features test_without_hardware
- beta
- stable
matrix:
allow_failures:
- rust: nightly
before_script:
- |
pip install 'travis-cargo<0.2' --user &&
export PATH=$HOME/.local/bin:$PATH
script:
- |
travis-cargo build &&
travis-cargo test -- --features test_without_hardware &&
travis-cargo bench &&
travis-cargo --only stable doc
addons:
apt:
packages:
- libbluetooth-dev
- libcurl4-openssl-dev
- libelf-dev
- libdw-dev
- libbluetooth-dev
after_success:
- travis-cargo --only stable doc-upload
- travis-cargo coveralls --no-sudo
notifications:
email:
on_success: never
env:
global:
- TRAVIS_CARGO_NIGHTLY_FEATURE=dev
secure=3xfeT8JWermKzpAOI8BoChYzCagxvR4uRypD8Mvyjo+qnxT3xfm7jbaaBVL+RUU17I7OQI4GehUMBsX4GuZ8kWl9vI0GTmN3zWaVIIvC2JaI9ViHuXFn5aVTgKHlEysL4STLh/uKRV5FGZYcM3RhfwDBDMPqVWUhhVaD2i4k1Ik+uL/if/e5XMahlubetFUM3rFLOjq9sq6zvvxf7GoI8XOznD+UHqTlxq4iRW62XivSXA8s2BDwg8rUafrI83SyR7TJhSHVO3M48HwE6dBNV6HSST1zYRdJDPXCC0e/1vpuw5TIkHR1vJdoSYvehFYlfayFnpDA/lLKSLnlD+eZ0UBPcVOvZAqBqoTD6uG0KVspPjEdDd4xP86K3h2PKnkJHFdyNPUHWyKuzqWe1rorm/t6A8rS51Kvhe3+4YB8HZl83baoJPLy55MGMKZwELgq04RsmlaVUfhINzJ9RftKe+icekQGs8lkqjdvPmbwikM/tP+zGteoICU/t9X3OSXcA8ty0GzyyI9JAK4rBiRrLNqfREkcEIW5MIsuYvzG98ix/C4zIy8Xs8s/pvI800GB8assQ/NbTrDeNrdpZZo11j8GoHra2Of82kCWDAqf2pmbuWHx5RFLZa8knEpFSnaRj1rWRJSCog0hgkNxdOfx9oskq2ZaEHebPlhKg2lbgQA=
2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@ license = "MIT"
mio = "^0.4.3"
nix = "^0.4.1"
libc = "^0.1.10"
clippy = {version = "^0.0.22", optional = true}

[features]
# Feature to disable any tests which rely on hardware availability
# eg: tests which attempt to create a BluetoothSocket.
test_without_hardware = []
dev = ["clippy"]
4 changes: 4 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
#![cfg_attr(feature = "dev", allow(unstable_features))]
#![cfg_attr(feature = "dev", feature(plugin))]
#![cfg_attr(feature = "dev", plugin(clippy))]

extern crate mio;
extern crate nix;
extern crate libc;
Expand Down