diff --git a/.travis.yml b/.travis.yml index ff117ca3..f30c65a1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/README.md b/README.md index 8d6904d4..7ee18b4f 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ -| Travis | AppVeyor | GitLab| -|:-------------:|:-------------:|:-----:| -| [](https://travis-ci.org/Exiv2/exiv2) | [](https://ci.appveyor.com/project/piponazo/exiv2-wutfp/branch/master) | [](https://gitlab.com/D4N/exiv2/commits/master) | +| Travis | AppVeyor | GitLab| Codecov| +|:-------------:|:-------------:|:-----:|:------:| +| [](https://travis-ci.org/Exiv2/exiv2) | [](https://ci.appveyor.com/project/piponazo/exiv2-wutfp/branch/master) | [](https://gitlab.com/D4N/exiv2/commits/master) | [](https://codecov.io/gh/Exiv2/exiv2) |
diff --git a/ci/install.sh b/ci/install.sh
index e7830a81..4ca8c31b 100755
--- a/ci/install.sh
+++ b/ci/install.sh
@@ -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
diff --git a/ci/run.sh b/ci/run.sh
index 6cd6b87a..a09f33ba 100755
--- a/ci/run.sh
+++ b/ci/run.sh
@@ -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