-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
48 lines (40 loc) · 1 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
sudo: false
dist: trusty
language: rust
cache:
cargo: true
apt: true
rust:
- stable
- beta
- nightly
matrix:
include:
- rust: nightly-2018-03-20
env: # use env so updating versions causes cache invalidation
- CLIPPY_VERSION=0.0.189
before_script:
- rustup component add rustfmt-preview
- cargo install clippy --version $CLIPPY_VERSION || echo "clippy already installed"
script:
- cargo fmt -- --write-mode=diff
- cargo clippy -- -D clippy
addons:
apt:
sources:
packages:
# Cargo coverage dependencies
- libcurl4-openssl-dev
- libelf-dev
- libdw-dev
- binutils-dev
install:
- cargo install cargo-travis || echo "Cargo travis is already installed!"
- export PATH=$HOME/.cargo/bin:$PATH
script:
- cargo test --all --verbose
# - if [ "$TRAVIS_RUST_VERSION" == "stable" ]; then cargo coveralls --all; fi
after_success: |
if [ "$TRAVIS_RUST_VERSION" == "stable" ]; then
cargo coveralls --all
fi