-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
43 lines (37 loc) · 840 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
sudo: required
language: rust
# Dependencies of kcov, used by coverage
addons:
apt:
packages:
- libcurl4-openssl-dev
- libelf-dev
- libdw-dev
- binutils-dev
- cmake
sources:
- kalakris-cmake
# run builds for all the trains (and more)
rust:
- nightly
- beta
- stable
matrix:
allow_failures:
- rust: nightly
before_script:
- export PATH=$HOME/.cargo/bin:$PATH
- cargo install cargo-update || echo "cargo-update already installed"
- cargo install cargo-travis || echo "cargo-travis already installed"
- cargo install-update -a # update outdated cached binaries
# the main build
script:
- |
rustc -vV &&
cargo -vV &&
cargo build &&
cargo test &&
cargo doc
after_success:
# measure code coverage and upload to coveralls.io
- cargo coveralls