language: rust
os:
    - linux
    - osx
rust:
    - stable
    - beta
    - nightly
matrix:
    allow_failures:
        - rust: nightly
# bors default configuration:
#branches:
#  only:
#    # This is where pull requests from "bors r+" are built.
#    - staging
#    # This is where pull requests from "bors try" are built.
#    - trying
#    # Uncomment this to enable building pull requests.
#    #- master
#
# Instead, we can just disable bors temporary branches.
branches:
  except:
    - staging.tmp
    - trying.tmp
before_script:
    - rustup component add rustfmt
    - rustup component add clippy
script:
    - cargo fmt -- --check
    # Ideally we would run CLippy on all targets, but benchmarks depend on an
    # unstable feature and only work on nightly.
    #- cargo clippy --all-targets -- -D warnings
    - cargo clippy -- -D warnings -W clippy::match-same-arms
    - cargo clippy --tests -- -D warnings -W clippy::match-same-arms
    - cargo build --verbose
    - cargo build --verbose --features enable_logging
    - cargo test --verbose
    - cargo test --verbose --features enable_logging
    - cargo bench --verbose
    - cargo bench --verbose --features enable_logging

language: rust
os:
    - linux
    - osx
rust:
    - stable
    - beta
    - nightly
matrix:
    allow_failures:
        - rust: nightly
# bors default configuration:
#branches:
#  only:
#    # This is where pull requests from "bors r+" are built.
#    - staging
#    # This is where pull requests from "bors try" are built.
#    - trying
#    # Uncomment this to enable building pull requests.
#    #- master
#
# Instead, we can just disable bors temporary branches.
branches:
  except:
    - staging.tmp
    - trying.tmp
before_script:
    - rustup component add rustfmt
    - rustup component add clippy
script:
    - cargo fmt -- --check
    # Ideally we would run CLippy on all targets, but benchmarks depend on an
    # unstable feature and only work on nightly.
    #- cargo clippy --all-targets -- -D warnings
    - cargo clippy -- -D warnings -W clippy::match-same-arms
    - cargo clippy --tests -- -D warnings -W clippy::match-same-arms
    - cargo build --verbose
    - cargo build --verbose --features enable_logging
    - cargo test --verbose
    - cargo test --verbose --features enable_logging

Remove benchmarks from Travis, as they require an unstable feature.
Remove benchmarks from Travis, as they require an unstable feature.
