summaryrefslogtreecommitdiff
path: root/.travis.yml
blob: 1b8bcad8eb3626be06f3dd47734a3cf824a52a7b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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-2020-06-10

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