Skip to content

Commit ec1501b

Browse files
committed
ci: check rustfmt, upload coverage
Signed-off-by: Nick Stevens <[email protected]>
1 parent ecedf3e commit ec1501b

File tree

2 files changed

+36
-5
lines changed

2 files changed

+36
-5
lines changed

.travis.yml

Lines changed: 33 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,43 @@
1+
sudo: false
2+
13
language: rust
4+
5+
cache: cargo
6+
7+
addons:
8+
apt:
9+
sources:
10+
- kalakris-cmake
11+
packages:
12+
- cmake
13+
- libcurl4-openssl-dev
14+
- libelf-dev
15+
- libdw-dev
16+
- binutils-dev
17+
218
rust:
319
- 1.15.0
420
- 1.16.0
521
- stable
622
- beta
723
- nightly
824

25+
before_script:
26+
- pip install 'travis-cargo<0.2' --user
27+
- export PATH=$HOME/.local/bin:$PATH
28+
- |
29+
if [ $TRAVIS_RUST_VERSION = "stable" ]; then
30+
cargo install cargo-update
31+
export PATH=$HOME/.cargo/bin:$PATH
32+
cargo install-update --allow-no-update rustfmt cargo-update
33+
fi
34+
935
script:
10-
- cargo build --verbose
11-
- cargo test --verbose
12-
- cargo doc
36+
- travis-cargo build
37+
- travis-cargo test
38+
- travis-cargo bench
39+
- travis-cargo --only stable doc -- --no-deps
40+
- travis-cargo --only stable fmt
1341

14-
# Use Travis container-based infrastructure
15-
sudo: false
42+
after_success:
43+
- travis-cargo coveralls --no-sudo --verify

Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,6 @@ skeptic = "0.9"
1616

1717
[dev-dependencies]
1818
skeptic = "0.9"
19+
20+
[features]
21+
unstable = []

0 commit comments

Comments
 (0)