forked from saltlick-crypto/saltlick-rs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
63 lines (56 loc) · 1.39 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
language: rust
os: linux
dist: bionic
stages:
- check
- test
- nightly
jobs:
allow_failures:
rust: nightly
fast_finish: true
include:
- stage: check
name: rustfmt
rust: 1.44.1
install:
- rustup component add rustfmt
script:
- cargo fmt -- --check
- name: "clippy-and-warnings"
env: RUSTFLAGS="-D warnings"
rust: 1.44.1
install:
- rustup component add clippy
script:
- cargo clippy --all-features --benches --bins --examples --tests -- -D clippy::all
- stage: test
rust: 1.42.0 # Oldest supported
- name: "Rust: stable + proptests"
rust: stable
script:
# Proptests take a lot longer to run in debug mode, enough so that the
# extra time to build in release mode is worth it.
- cargo test --release --all-features
- name: "Rust: stable + tarpaulin"
rust: stable
addons:
apt:
packages:
- libssl-dev
before_cache: |
bash <(curl https://raw.githubusercontent.com/xd009642/tarpaulin/master/travis-install.sh)
after_success: |
cargo tarpaulin --features='io-async' --out Xml
bash <(curl -s https://codecov.io/bash)
- os: windows
rust: stable
- os: osx
rust: stable
- stage: nightly
name: nightly
rust: nightly
script:
- cargo test
cache:
cargo: true