Skip to content

Commit

Permalink
Codecov support added
Browse files Browse the repository at this point in the history
  • Loading branch information
szymonwieloch committed Dec 28, 2018
1 parent 59d6edc commit bd8e31c
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 3 deletions.
35 changes: 33 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,44 @@
language: rust
sudo: false
sudo: required
cache: cargo
rust:
- 1.24.0
- stable
- nightly
- beta
os:
- linux
- osx
env:
- ARCH=x86_64
- ARCH=i686
- ARCH=i686

matrix:
allow_failures:
- rust: nightly

addons:
apt:
packages:
- libcurl4-openssl-dev
- libelf-dev
- libdw-dev
- cmake
- gcc
- binutils-dev
- libiberty-dev

after_success: |
wget https://github.com/SimonKagstrom/kcov/archive/master.tar.gz &&
tar xzf master.tar.gz &&
cd kcov-master &&
mkdir build &&
cd build &&
cmake .. &&
make &&
make install DESTDIR=../../kcov-build &&
cd ../.. &&
rm -rf kcov-master &&
for file in target/debug/dlopen-*[^\.d]; do mkdir -p "target/cov/$(basename $file)"; ./kcov-build/usr/local/bin/kcov --exclude-pattern=/.cargo,/usr/lib --verify "target/cov/$(basename $file)" "$file"; done &&
bash <(curl -s https://codecov.io/bash) &&
echo "Uploaded code coverage"
5 changes: 5 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@ branch = "master"
[badges.is-it-maintained-open-issues]
repository = "szymonwieloch/rust-dlopen"

[badges.codecov]
repository = "szymonwieloch/rust-dlopen"
branch = "master"
service = "github"

[[example]]
name = "raw"
crate-type = ["bin"]
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
# rust-dlopen

[![Travis CI][tcii]][tci] [![Appveyor CI][acii]][aci] [![Crates CI][ccii]][cci]
[![Travis CI][tcii]][tci] [![Appveyor CI][acii]][aci] [![Crates CI][ccii]][cci] [![Codedov CI][vcii]][vci]

[tcii]: https://travis-ci.org/szymonwieloch/rust-dlopen.svg?branch=master
[tci]: https://travis-ci.org/szymonwieloch/rust-dlopen
[acii]: https://ci.appveyor.com/api/projects/status/github/szymonwieloch/rust-dlopen?svg=true
[aci]: https://ci.appveyor.com/project/szymonwieloch/rust-dlopen
[ccii]: https://img.shields.io/crates/v/dlopen.svg
[cci]: https://crates.io/crates/dlopen
[vcii]: https://codecov.io/api/gh/szymonwieloch/rust-dlopen/branch/master/graph/badge.svg
[vci]: https://codecov.io/gh/szymonwieloch/rust-dlopen

# Overview

Expand Down

0 comments on commit bd8e31c

Please sign in to comment.