aboutsummaryrefslogtreecommitdiffstats
path: root/.travis.yml
blob: f796f6117feffd3fa301622940cfe14c02eab3cb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
language: rust
rust:
  - stable
  - beta
  - nightly
cache: cargo

before_script:
- rustup component add rustfmt-preview

script:
- cargo test --all
- if [[ "${TRAVIS_RUST_VERSION}" == stable ]]; then
    cargo fmt -- --check;
  fi
- if [[ "${TRAVIS_RUST_VERSION}" == nightly ]]; then
    cd testing && cargo test --features with-rocket;
  fi