language: rust
sudo: true
rust:
    - nightly
    - 1.0.0-beta.3
after_success: |
  cargo clean;
  cargo test --no-run;
  sudo apt-get update &&
  sudo apt-get install libcurl4-openssl-dev libelf-dev libdw-dev binutils-dev &&
  wget https://github.com/meqif/kcov/archive/coveralls_for_merge_mode.tar.gz &&
  tar xzf coveralls_for_merge_mode.tar.gz &&
  mkdir kcov-coveralls_for_merge_mode/build &&
  cd kcov-coveralls_for_merge_mode/build &&
  cmake .. &&
  make &&
  sudo make install &&
  cd ../.. &&
  kcov --exclude-pattern=/.cargo target/kcov_a target/debug/stream-* &&
  kcov --exclude-pattern=/.cargo target/kcov_b target/debug/utp-* &&
  kcov --coveralls-id=$TRAVIS_JOB_ID --merge target/kcov target/kcov_a target/kcov_b

language: rust
sudo: true
rust:
    - nightly
    - 1.0.0-beta.3
after_success: |
  cargo clean;
  cargo test --no-run;
  sudo apt-get update &&
  sudo apt-get install libcurl4-openssl-dev libelf-dev libdw-dev binutils-dev &&
  wget https://github.com/SimonKagstrom/kcov/archive/master.tar.gz &&
  tar xzf master.tar.gz &&
  mkdir kcov-master/build &&
  cd kcov-master/build &&
  cmake .. &&
  make &&
  sudo make install &&
  cd ../.. &&
  kcov --exclude-pattern=/.cargo target/kcov_a target/debug/stream-* &&
  kcov --exclude-pattern=/.cargo target/kcov_b target/debug/utp-* &&
  kcov --coveralls-id=$TRAVIS_JOB_ID --merge target/kcov target/kcov_a target/kcov_b

Revert kcov back to upstream version.
Revert kcov back to upstream version.

My patch to upload the coverage report to coveralls in merge mode was
merged to upstream.
