-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
46 lines (36 loc) · 893 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
44
45
46
language: rust
cache: cargo
sudo: required
addons:
apt:
packages:
- libssl-dev
# Clippy matrix
matrix:
fast_finish: true
include:
- rust: nightly-2018-01-12
env: # use env so updating versions causes cache invalidation
- CLIPPY_VERSION=0.0.179
before_script:
- cargo install clippy --version $CLIPPY_VERSION || echo "clippy already installed"
script:
- cargo clippy -- -D clippy
rust:
- stable
os:
- linux
env:
- ARCH=i686 RUST_BACKTRACE=1
- ARCH=x86_64 RUST_BACKTRACE=1
script:
- cargo build --verbose --all
- cargo test --verbose --all
after_success: |
if [[ "$TRAVIS_RUST_VERSION" == stable ]]; then
bash <(curl https://raw.githubusercontent.com/xd009642/tarpaulin/master/travis-install.sh)
cargo tarpaulin --out Xml
bash <(curl -s https://codecov.io/bash)
fi
notifications:
email: false