language: rust
sudo: false
rust:
  - stable
  - beta
  - nightly
before_script:
  - pip install 'travis-cargo<0.2' --user && export PATH=$HOME/.local/bin:$PATH
script:
  - cargo build --verbose
  - ([ $TRAVIS_RUST_VERSION != nightly ] || cargo build --verbose --no-default-features)
  - ([ $TRAVIS_RUST_VERSION != nightly ] || cargo build --verbose --features nightly)
  - cargo test --verbose
  - ([ $TRAVIS_RUST_VERSION != nightly ] || cargo test --verbose --no-default-features)
  - cargo test --verbose --manifest-path env/Cargo.toml
  - cargo test --verbose --manifest-path env/Cargo.toml --no-default-features
  - cargo run --verbose --manifest-path tests/max_level_features/Cargo.toml
  - cargo run --verbose --manifest-path tests/max_level_features/Cargo.toml --release
  - ([ $TRAVIS_RUST_VERSION != nightly ] || cargo doc --no-deps --features nightly)
  - CARGO_TARGET_DIR=target cargo doc --no-deps --manifest-path env/Cargo.toml
after_success:
  - travis-cargo --only nightly doc-upload
env:
  global:
    secure: "VPHgnszydMudYTY8cthHj/Dmxqp7OmTiu4Sa/705Udsx+tYblTv+8WdThkClo3C/asStVcxlaRWAp91UX32/k4SfkPz17XId3Wadyt03r73ANm6ZOWY+qty+3/LINm54kuTxYUDDTbD6NaFNPFQLIE0xCpJeiXUQTlaMk6z0W3M="

notifications:
  email:
    on_success: never
