-
Notifications
You must be signed in to change notification settings - Fork 10
/
.travis.yml
52 lines (42 loc) · 939 Bytes
/
.travis.yml
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
language: rust
sudo: false
rust:
- stable
- beta
- nightly
os:
- linux
- osx
env:
- CARGO_FEATURES='--features default'
- CARGO_FEATURES='--no-default-features'
# necessary for `travis-cargo coveralls --no-sudo`
addons:
apt:
packages:
- libcurl4-openssl-dev
- libelf-dev
- libdw-dev
cache:
directories:
- $HOME/.cargo
matrix:
allow_failures:
- rust: nightly
exclude:
- os: osx
env: CARGO_FEATURES='--no-default-features'
before_script:
- pip install 'travis-cargo<0.2' --user && export PATH=`python -m site --user-base`/bin:$PATH
script:
- travis-cargo build -- $CARGO_FEATURES
- travis-cargo test -- $CARGO_FEATURES
- rustdoc --test README.md -L target/debug -L target/debug/deps
- cargo doc --no-deps
after_success:
- if [ "$TRAVIS_OS_NAME" == 'linux' ]; then
travis-cargo coveralls --no-sudo;
fi
notifications:
email:
on_success: never