environment 0.1.1

Helper to deal with environment variables.
Documentation
sudo: false
language: rust
cache: cargo
rust:
- beta
- stable
- nightly
matrix:
  include:
  - rust: nightly-2017-10-09
    env: CLIPPY_VERS="0.0.165"
    before_script: |
      [[ "$(cargo +nightly-2017-10-09 clippy --version)" != "$CLIPPY_VERS" ]] && \
      cargo +nightly-2017-10-09 install clippy --vers "$CLIPPY_VERS" --force || true
    script: |
      cargo +nightly-2017-10-09 clippy -- -D warnings
  - rust: nightly-2017-10-09
    env: RUSTFMT_VERS="0.2.8"
    before_script: |
      [[ "$(cargo +nightly-2017-10-09 fmt -- --version)" != "$RUSTFMT_VERS"* ]] && \
      cargo +nightly-2017-10-09 install rustfmt-nightly --vers "$RUSTFMT_VERS" --force || true
    script: |
      cargo +nightly-2017-10-09 fmt --all -- --write-mode=diff
before_script:
- |
  pip install 'travis-cargo<0.2' --user &&
  export PATH=$HOME/.local/bin:$PATH
script:
- |
  travis-cargo build &&
  travis-cargo clean &&
  travis-cargo test &&
  travis-cargo bench
notifications:
  email:
    on_success: never
branches:
  only:
    - master
    - staging
    - trying
env:
  global:
    - TRAVIS_CARGO_NIGHTLY_FEATURE=""