Skip to content

Commit 1921800

Browse files
committed
Add TravisCI config file for automated builds
1 parent b661c16 commit 1921800

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.travis.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
sudo: required
2+
language: rust
3+
4+
# Cache cargo symbols for faster build
5+
cache: cargo
6+
7+
# Dependencies of kcov, used by coverage
8+
addons:
9+
apt:
10+
packages:
11+
- libcurl4-openssl-dev
12+
- libelf-dev
13+
- libdw-dev
14+
- binutils-dev
15+
- cmake # also required for cargo-update
16+
sources:
17+
- kalakris-cmake
18+
19+
before_script:
20+
- export PATH=$HOME/.cargo/bin:$PATH
21+
- cargo install cargo-update || echo "cargo-update already installed"
22+
- cargo install cargo-travis || echo "cargo-travis already installed"
23+
- cargo install-update -a # update outdated cached binaries
24+
25+
script:
26+
- |
27+
cargo build &&
28+
cargo test --all --verbose &&
29+
cargo bench &&
30+
cargo doc
31+
32+
after_success:
33+
# measure code coverage and upload to coveralls.io
34+
- cargo coveralls
35+
# upload documentation to github.io (gh-pages branch)
36+
- cargo doc-upload

0 commit comments

Comments
 (0)