-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
38 lines (31 loc) · 883 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
language: rust
cache: cargo
before_cache: |
cargo install cargo-tarpaulin || echo "cargo-tarpaulin already installed"
cargo install cargo-update || echo "cargo-update already installed"
cargo install cargo-audit || echo "cargo-audit already installed"
cargo install-update --all
# before_cache:
# - rm -rf /home/travis/.cargo/registry
# until seek_convenience is stabilized
rust:
# - stable
# - beta
- nightly
# matrix:
# allow_failures:
# - rust: nightly
script: |
cargo clean
cargo build
cargo test
# it's enough to run this once:
if [[ "$TRAVIS_RUST_VERSION" == nightly ]]; then
cargo audit
fi
after_success: |
# this does require a -Z flag for Doctests, which is unstable!
if [[ "$TRAVIS_RUST_VERSION" == nightly ]]; then
cargo tarpaulin --run-types Tests Doctests --out Xml
bash <(curl -s https://codecov.io/bash)
fi