summaryrefslogtreecommitdiff
path: root/.travis.yml
blob: 40cd744b24e463c7e65b0565e246e0616a0566a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
language: rust
# 2020-06-17 - nightly hasn't had rustfmt since 2020-06-10, so builds fail on
# that toolchain. We want to use it as far as is possible, though.
rust:
    - nightly
    - nightly-2020-06-10

jobs:
    allow_failures:
        - rust: nightly

cache: cargo

install:
    - rustup component add clippy rustfmt
    - cargo install cargo-udeps
    - cargo build

script:
    - cargo build
    - cargo test
    - cargo fmt -- --check
    - cargo clippy -- --deny warnings
    - cargo udeps --locked --all-targets