evdev-rs 0.4.0

Bindings to libevdev for interacting with evdev devices. It moves the common tasks when dealing with evdev devices into a library and provides a library interface to the callers, thus avoiding erroneous ioctls, etc.
Documentation
os: linux
dist: xenial
language: rust
rust:
  - stable
  - beta
  - nightly

env:
  - TARGET=x86_64-unknown-linux-gnu

jobs:
  include:
    - env: TARGET=arm-unknown-linux-gnueabi
      addons:
        apt:
          packages:
            - gcc-arm-linux-gnueabi
            - libc6-armel-cross
            - libc6-dev-armel-cross
    - env: TARGET=arm-unknown-linux-gnueabihf
      addons:
        apt:
          packages:
            - gcc-arm-linux-gnueabihf
            - libc6-armhf-cross
            - libc6-dev-armhf-cross
  allow_failures:
    - rust: nightly

addons:
  apt:
    packages:
      - build-essential

before_script:
  - pip install 'travis-cargo<0.2' --user && export PATH=$HOME/.local/bin:$PATH
  - rustup target add $TARGET

script:
  - PKG_CONFIG_PATH=$HOME/local/lib/pkgconfig LD_LIBRARY_PATH=$HOME/local/lib:$LD_LIBRARY_PATH travis_retry cargo build --target $TARGET --verbose
  - |
      if [ $TARGET == "x86_64-unknown-linux-gnu" ]
        then
          PKG_CONFIG_PATH=$HOME/local/lib/pkgconfig LD_LIBRARY_PATH=$HOME/local/lib:$LD_LIBRARY_PATH sudo -E env "PATH=$PATH" cargo test --verbose
      fi
  - cargo doc --no-deps -p evdev-sys -p evdev-rs

after_success:
  - travis-cargo --only stable doc-upload
  - travis-cargo coveralls

notifications:
  email:
    on_success: never