travis: Enable coverage reports in gcc build

* I also had to update the conan version to fix some issues in CI.
* Codecov reports are now added to the README.md and to each PR.
This commit is contained in:
Luis Diaz Mas 2018-07-31 20:23:09 +00:00 committed by Luis Díaz Más
parent 6521f7c4f9
commit 8ba9422ba3
4 changed files with 11 additions and 4 deletions

View File

@ -6,6 +6,7 @@ matrix:
dist: trusty
sudo: required
compiler: gcc
env: COVERAGE=1 CMAKE_OPTIONS="-DCMAKE_BUILD_TYPE=Release -DEXIV2_ENABLE_VIDEO=ON -DEXIV2_ENABLE_WEBREADY=ON -DEXIV2_BUILD_UNIT_TESTS=ON -DBUILD_WITH_COVERAGE=ON" # All enabled + Coverage
- os: linux
dist: trusty
sudo: required

View File

@ -1,6 +1,6 @@
| Travis | AppVeyor | GitLab|
|:-------------:|:-------------:|:-----:|
| [![Build Status](https://travis-ci.org/Exiv2/exiv2.svg?branch=master)](https://travis-ci.org/Exiv2/exiv2) | [![Build status](https://ci.appveyor.com/api/projects/status/d6vxf2n0cp3v88al/branch/master?svg=true)](https://ci.appveyor.com/project/piponazo/exiv2-wutfp/branch/master) | [![pipeline status](https://gitlab.com/D4N/exiv2/badges/master/pipeline.svg)](https://gitlab.com/D4N/exiv2/commits/master) |
| Travis | AppVeyor | GitLab| Codecov|
|:-------------:|:-------------:|:-----:|:------:|
| [![Build Status](https://travis-ci.org/Exiv2/exiv2.svg?branch=master)](https://travis-ci.org/Exiv2/exiv2) | [![Build status](https://ci.appveyor.com/api/projects/status/d6vxf2n0cp3v88al/branch/master?svg=true)](https://ci.appveyor.com/project/piponazo/exiv2-wutfp/branch/master) | [![pipeline status](https://gitlab.com/D4N/exiv2/badges/master/pipeline.svg)](https://gitlab.com/D4N/exiv2/commits/master) | [![codecov](https://codecov.io/gh/Exiv2/exiv2/branch/master/graph/badge.svg)](https://codecov.io/gh/Exiv2/exiv2) |
<pre><code>

View File

@ -28,7 +28,8 @@ fi
python --version
pip install urllib3[secure] -U #Should solve SSL issues
pip install conan==1.1.1
pip install conan==1.6.1
pip install codecov
conan --version
conan config set storage.path=~/conanData
conan remote add conan-bincrafters https://api.bintray.com/conan/bincrafters/public-conan

View File

@ -31,3 +31,8 @@ make tests
make install
cd bin
./unit_tests
if [ -n "$COVERAGE" ]; then
cd ..
bash <(curl -s https://codecov.io/bash)
fi