1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
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