mockito 0.16.0

HTTP mocking for Rust.
Documentation
language: rust
rust:
  - 1.31.0  # pinned toolchain for clippy
  - 1.29.0  # minimum supported toolchain
  - stable
  - beta
  - nightly

matrix:
  allow_failures:
    - rust: nightly

branches:
  only:
    - master

env:
  global:
    - CLIPPY_RUST_VERSION=1.31.0

before_script:
  - bash -c 'if [[ "$TRAVIS_RUST_VERSION" == "$CLIPPY_RUST_VERSION" ]]; then
      rustup component add clippy;
    fi'

script:
  - cargo test
  # Running clippy on lib and tests only as bench uses features not available on stable toolchain
  - bash -c 'if [[ "$TRAVIS_RUST_VERSION" == "$CLIPPY_RUST_VERSION" ]]; then
      cargo clippy --lib --tests --all-features -- -D clippy::pedantic -D clippy::nursery;
    fi'

notifications:
  email:
    on_success: never