From db2c7dbe62c92dc8cff944d2e16de6ef930f3df9 Mon Sep 17 00:00:00 2001 From: Eric Fischer Date: Mon, 19 Mar 2018 15:54:04 -0700 Subject: [PATCH 1/4] Update list of directories to exclude from code coverage --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index c44d170..ebc8904 100644 --- a/.travis.yml +++ b/.travis.yml @@ -104,5 +104,5 @@ script: - if [ -n "${COVERAGE}" ]; then /usr/bin/llvm-cov-3.5 -lp *.o; pip install --user cpp-coveralls; - ~/.local/bin/coveralls --no-gcov -i ./ --exclude clipper; + ~/.local/bin/coveralls --no-gcov -i ./ --exclude catch --exclude jsonpull --exclude mapbox --exclude milo --exclude protozero ; fi From 239a798bfe5c05f30aff8f9d858d2cb74115c662 Mon Sep 17 00:00:00 2001 From: Eric Fischer Date: Mon, 19 Mar 2018 16:05:14 -0700 Subject: [PATCH 2/4] Try codecov for code coverage --- .travis.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index ebc8904..f27b0b2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -52,6 +52,13 @@ matrix: - os: linux compiler: clang env: CLANG_VERSION='3.8.0' BUILDTYPE=Debug CC="clang-3.8" CXX="clang++-3.8" CXXFLAGS="--coverage" CFLAGS="--coverage" LDFLAGS="--coverage" + after_script: + - mason install llvm-cov 3.9.1 + - mason link llvm-cov 3.9.1 + - which llvm-cov + - curl -S -f https://codecov.io/bash -o codecov + - chmod +x codecov + - ./codecov -x "llvm-cov gcov" -Z addons: apt: sources: ['ubuntu-toolchain-r-test' ] @@ -101,8 +108,3 @@ script: BUILDTYPE=${BUILDTYPE} make fewer-tests; else BUILDTYPE=${BUILDTYPE} make test geobuf-test; fi - - if [ -n "${COVERAGE}" ]; then - /usr/bin/llvm-cov-3.5 -lp *.o; - pip install --user cpp-coveralls; - ~/.local/bin/coveralls --no-gcov -i ./ --exclude catch --exclude jsonpull --exclude mapbox --exclude milo --exclude protozero ; - fi From cc2cae144eb2495d7e41402f4744ff025e848d55 Mon Sep 17 00:00:00 2001 From: Eric Fischer Date: Mon, 19 Mar 2018 16:27:56 -0700 Subject: [PATCH 3/4] Add yml file for code coverage --- codecov.yml | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 codecov.yml diff --git a/codecov.yml b/codecov.yml new file mode 100644 index 0000000..b52d0c4 --- /dev/null +++ b/codecov.yml @@ -0,0 +1,2 @@ +ignore: + - "test" From 8ff6e73b6de95a00d3167b323f0906d49063d1c2 Mon Sep 17 00:00:00 2001 From: Eric Fischer Date: Wed, 21 Mar 2018 11:48:37 -0700 Subject: [PATCH 4/4] Add codecov badge --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index e3a002d..bf80071 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ Builds [vector tilesets](https://www.mapbox.com/developers/vector-tiles/) from l ![Mapbox Tippecanoe](https://user-images.githubusercontent.com/1951835/36568734-ede27ec0-17df-11e8-8c22-ffaaebb8daf4.JPG) [![Build Status](https://travis-ci.org/mapbox/tippecanoe.svg)](https://travis-ci.org/mapbox/tippecanoe) -[![Coverage Status](https://coveralls.io/repos/mapbox/tippecanoe/badge.svg?branch=master&service=github)](https://coveralls.io/github/mapbox/tippecanoe?branch=master) +[![Coverage Status](https://codecov.io/gh/mapbox/tippecanoe/branch/master/graph/badge.svg)](https://codecov.io/gh/mapbox/tippecanoe) Intent ------