exitfailure 0.5.1

A basic newtype wrappers for use with ? in main
Documentation
language: rust
cache: cargo
env: # required for allow_failures
os:
  - linux
  - osx
rust:
  - stable
  - beta
  - nightly
  - 1.26.0 #oldest supported release

matrix:
  fast_finish: true
  allow_failures:
    #- env: NAME='cargo-travis'
    #- rust: nightly
  include:
    - rust: nightly
      env: NAME='cargo-clippy'
      before_script:
        - rustup component add rustfmt-preview
        - rustup component add clippy-preview
      script:
        - cargo fmt --all -- --check
        - cargo clippy

    - env: NAME='cargo-travis'
      sudo: required # travis-ci/travis-ci#9061
      before_script:
        - cargo install cargo-update || echo "cargo-update already installed"
        - cargo install cargo-travis || echo "cargo-travis already installed"
        - cargo install-update -a
      script:
        - |
          export RUST_BACKTRACE=1 &&
          cargo build --verbose &&
          cargo coverage --verbose &&
          bash <(curl -s https://codecov.io/bash) -s target/kcov
      addons: # required for kcov
        apt:
          packages:
            - libcurl4-openssl-dev
            - libelf-dev
            - libdw-dev
            - binutils-dev
            - cmake

script: |
  export RUST_BACKTRACE=1 &&
  cargo build --verbose &&
  cargo test --verbose &&
  cargo doc --no-deps --verbose