message: Trying to set up codecov.io with cargo-tarpaulin.
diff: @@ -11,13 +11,28 @@ os:
  matrix:
  allow_failures:
  - rust: nightly
  +addons:
  + apt:
  + packages:
  + - libssl-dev
  +cache: cargo
  script:
  - cargo test --verbose headless
  -
  before_install:
  - if [ "${TRAVIS_OS_NAME}" = "linux" ]; then
  sudo apt-get -qq update
  && sudo apt-get install -y libasound2-dev libudev-dev;
  fi
  +
  +after_success: |
  + if [[ ${TRAVIS_OS_NAME}" == "linux" && "${TRAVIS_RUST_VERSION}" == stable ]]; then
  + RUSTFLAGS="--cfg procmacro2_semver_exempt" cargo install cargo-tarpaulin
  + # Uncomment the following line for coveralls.io
  + # cargo tarpaulin --ciserver travis-ci --coveralls $TRAVIS_JOB_ID
  +
  + # Uncomment the following two lines create and upload a report for codecov.io
  + cargo tarpaulin --out Xml
  + bash <(curl -s https://codecov.io/bash)
  + fi
  