Skip to content

Commit e6d7f6f

Browse files
Add Travis CI
1 parent b357ee5 commit e6d7f6f

File tree

1 file changed

+55
-0
lines changed

1 file changed

+55
-0
lines changed

.travis.yml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
language: rust
2+
cache: cargo
3+
env: # required for allow_failures
4+
rust:
5+
- stable
6+
- beta
7+
- nightly
8+
9+
matrix:
10+
fast_finish: true
11+
allow_failures:
12+
- env: NAME='cargo-travis'
13+
include:
14+
- rust: nightly-2018-06-18
15+
env: # use env so updating versions causes cache invalidation
16+
- CLIPPY_VERSION=0.0.208
17+
before_script:
18+
- rustup component add rustfmt-preview
19+
- cargo install clippy --version $CLIPPY_VERSION || echo "clippy already installed"
20+
script:
21+
- cargo fmt -- --check
22+
- cargo clippy -- -D clippy
23+
- env: NAME='cargo-travis'
24+
sudo: required # travis-ci/travis-ci#9061
25+
before_script:
26+
- cargo install cargo-update || ehco "cargo-update already installed"
27+
- cargo install cargo-travis || echo "cargo-travis already installed"
28+
- cargo install-update -a
29+
script:
30+
- |
31+
cargo build --verbose &&
32+
cargo coverage --verbose &&
33+
bash <(curl -s https://codecov.io/bash) -s target/kcov
34+
- |
35+
cargo doc --verbose &&
36+
cargo doc-upload
37+
addons: # required for kcov
38+
apt:
39+
packages:
40+
- libcurl4-openssl-dev
41+
- libelf-dev
42+
- libdw-dev
43+
- binutils-dev
44+
- cmake
45+
46+
script: |
47+
cargo build --verbose &&
48+
cargo test --verbose &&
49+
cargo doc --verbose
50+
51+
branches:
52+
only:
53+
- staging # bors r+
54+
- trying # bors try
55+
- master

0 commit comments

Comments
 (0)