pathfinding 0.6.7

Pathfinding, flow, and graph algorithms
Documentation
language: rust

branches:
  only:
    - staging
    - trying

matrix:
  include:
    - rust: stable
    - rust: beta
    - rust: nightly
      env: NIGHTLY=y
    - rust: nightly
      env: CHECK_CLIPPY=y CHECK_FMT=y
  allow_failures:
    - rust: nightly
      env: CHECK_CLIPPY=y CHECK_FMT=y NIGHTLY=y
  fast_finish: true

cache:
  cargo: true

install:
  - if [ ! -z "$CHECK_FMT" ]; then (cargo install --force rustfmt-nightly | true); fi
  - if [ ! -z "$CHECK_CLIPPY" ]; then (cargo install --force clippy | true); fi

before_script:
  - if [ ! -z "$CHECK_FMT" ]; then PATH=$PATH:~/.cargo/bin cargo fmt --all -- --write-mode=diff; fi
  - if [ ! -z "$CHECK_CLIPPY" ]; then PATH=$PATH:~/.cargo/bin cargo clippy --all -- -D clippy; fi

script:
  - if [ "$NIGHTLY" ]; then cargo build --all-targets; else cargo build --all; fi
  - if [ "$NIGHTLY" ]; then cargo test --all-targets; else cargo test --all; fi