-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
62 lines (55 loc) · 1.44 KB
/
.travis.yml
File metadata and controls
62 lines (55 loc) · 1.44 KB
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
56
57
58
59
60
61
62
os: linux
dist: xenial
language: rust
rust:
- stable
- beta
- nightly
env:
global:
- TARGET=x86_64-unknown-linux-gnu
- PKG_CONFIG_PATH=$HOME/local/lib/pkgconfig
- LD_LIBRARY_PATH=$HOME/local/lib:$LD_LIBRARY_PATH
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
- rustup component add rustfmt
script:
- cargo fmt -- --check
- travis_retry cargo build --target $TARGET --verbose
- travis_retry cargo build --target $TARGET --all-features --verbose
- |
if [ $TARGET == "x86_64-unknown-linux-gnu" ]
then
sudo --preserve-env env "PATH=$PATH" cargo test --verbose
sudo --preserve-env env "PATH=$PATH" cargo test --all-features --verbose
fi
- cargo doc --no-deps --all-features -p evdev-sys -p evdev-rs
after_success:
- travis-cargo --only stable doc-upload
- travis-cargo coveralls
notifications:
email:
on_success: never