language: rust
sudo: false
cache: cargo
rust:
- stable
- beta
- nightly
os:
- linux
- osx
matrix:
  include:
  - os: linux
    rust: 1.16.0
    script: cargo build --verbose
  - os: linux
    rust: stable
    sudo: true
    addons:
      apt:
        packages:
        - libssl-dev
    script: | # cargo tarpaulin
      bash <(curl https://raw.githubusercontent.com/xd009642/tarpaulin/master/travis-install.sh) &&
      cargo tarpaulin --all-features --ciserver travis-ci --coveralls $TRAVIS_JOB_ID
  allow_failures:
    - script: | # cargo tarpaulin
        bash <(curl https://raw.githubusercontent.com/xd009642/tarpaulin/master/travis-install.sh) &&
        cargo tarpaulin --all-features --ciserver travis-ci --coveralls $TRAVIS_JOB_ID
script:
- cargo test --verbose
- cargo test --verbose --features=colored
- cargo test --verbose --features=syslog-3
- cargo test --verbose --features=syslog-4
- cargo test --verbose --features=reopen-03
- cargo test --verbose --features=meta-logging-in-format
- cargo test --verbose --all-features
- cargo run --example cmd-program
- cargo run --example cmd-program -- --verbose
- cargo run --example colored --features colored
- cargo run --example pretty-colored --features colored
- cargo run --example syslog --features syslog-4
- cargo run --example syslog3 --features syslog-3

language: rust
sudo: false
cache: cargo
rust:
- 1.32.0
- stable
- beta
- nightly
os:
- linux
- osx
matrix:
  include:
  - os: linux
    rust: stable
    sudo: true
    addons:
      apt:
        packages:
        - libssl-dev
    script: | # cargo tarpaulin
      bash <(curl https://raw.githubusercontent.com/xd009642/tarpaulin/master/travis-install.sh) &&
      cargo tarpaulin --all-features --ciserver travis-ci --coveralls $TRAVIS_JOB_ID
  allow_failures:
    - script: | # cargo tarpaulin
        bash <(curl https://raw.githubusercontent.com/xd009642/tarpaulin/master/travis-install.sh) &&
        cargo tarpaulin --all-features --ciserver travis-ci --coveralls $TRAVIS_JOB_ID
script:
- cargo test --verbose
- cargo test --verbose --features=colored
- cargo test --verbose --features=syslog-3
- cargo test --verbose --features=syslog-4
- cargo test --verbose --features=reopen-03
- cargo test --verbose --features=meta-logging-in-format
- cargo test --verbose --all-features
- cargo run --example cmd-program
- cargo run --example cmd-program -- --verbose
- cargo run --example colored --features colored
- cargo run --example pretty-colored --features colored
- cargo run --example syslog --features syslog-4
- cargo run --example syslog3 --features syslog-3

Remove support requirement for Rust 1.16.0
Remove support requirement for Rust 1.16.0

This decision was effectively made by cfg-if's 0.1.10 release, which
updates it to the 2018 edition and thus effectively requires Rust
1.31.0. `log`, among other crates, depends on cfg-if 0.1, so there
isn't much use in us trying to somehow retain Rust 1.16.0
compatibility given that.
