-
Notifications
You must be signed in to change notification settings - Fork 8
/
.travis.yml
49 lines (42 loc) · 1.05 KB
/
.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
sudo: true
language: rust
cache:
cargo: true
apt: true
addons:
apt:
packages:
- libcurl4-openssl-dev
- libelf-dev
- libdw-dev
- binutils-dev
- cmake
sources:
- kalakris-cmake
rust:
- stable
- beta
- nightly
matrix:
allow_failures:
- rust: nightly
# TODO: Because caching when installing cargo-travis there can already exists one which fails because cargo install is stupid.
# -f could be used to force installation, but that kinda defeats the point of caching,
# so we just ignore error for now and just cross fingers and hope that there exists cargo-travis.
before_script:
- |
cargo install cargo-travis &&
export PATH=$HOME/.cargo/bin:$PATH || true
script:
- |
cargo build -v
travis_wait 30 cargo test
if [ "$TRAVIS_RUST_VERSION" == "nightly" ]; then
cargo bench -v --no-run --all-features;
fi
cargo doc -v
after_success:
- |
if [ "$TRAVIS_RUST_VERSION" == "stable" ]; then
cargo coveralls --all --exclude-pattern tests/;
fi