summaryrefslogtreecommitdiff
path: root/.travis.yml
blob: 39807862b1b50a01aa31673f525918a9999859a1 (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
25
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

# dup of the list in .git-hooks/pre-commit
script:
    - cargo build --locked
    - cargo test
    - cargo fmt -- --check
    - cargo clippy -- --deny warnings
    - cargo udeps --locked --all-targets