Skip to content

Commit

Permalink
Upload coverage after success
Browse files Browse the repository at this point in the history
  • Loading branch information
exul committed Jan 21, 2017
1 parent 7347809 commit 4759932
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,11 @@ before_script:

script:
- docker run -v "$(pwd):/source" exul/matrix-rocketchat-dev /bin/sh -c "cd /source && cargo clean && cargo test"

after_success:
- docker run -v "$(pwd):/source" -e TRAVIS_JOB_ID=${TRAVIS_JOB_ID} --security-opt seccomp=unconfined exul/matrix-rocketchat-dev /bin/bash -c
"cd /source &&
cargo clean &&
cargo test --no-run &&
find ./target/debug -maxdepth 1 -regex '.*-.*[0-9]+.*' -print0 | xargs -0 -n 1 kcov --verify --exclude-pattern=/.cargo,/source/target/debug/build,/source/tests /source/target/kcov &&
kcov --coveralls-id=${TRAVIS_JOB_ID} --merge ./target/kcov-merge ./target/kcov"

0 comments on commit 4759932

Please sign in to comment.