mirror of
https://github.com/felt/tippecanoe.git
synced 2026-10-05 09:55:41 +02:00
Merge pull request #138 from mapbox/travis-improvements
Add code coverage
This commit is contained in:
+24
@@ -5,13 +5,37 @@ sudo: false
|
|||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- os: linux
|
- os: linux
|
||||||
|
compiler: gcc
|
||||||
|
env: COVERAGE=gcov-4.9
|
||||||
|
addons:
|
||||||
|
apt:
|
||||||
|
sources: ['ubuntu-toolchain-r-test']
|
||||||
|
packages: [ 'g++-4.9', 'protobuf-compiler', 'libprotobuf-dev' ]
|
||||||
|
- os: linux
|
||||||
|
compiler: clang
|
||||||
addons:
|
addons:
|
||||||
apt:
|
apt:
|
||||||
packages: [ 'protobuf-compiler', 'libprotobuf-dev' ]
|
packages: [ 'protobuf-compiler', 'libprotobuf-dev' ]
|
||||||
|
- os: osx
|
||||||
|
compiler: clang
|
||||||
|
|
||||||
|
|
||||||
install:
|
install:
|
||||||
|
- if [[ $(uname -s) == 'Darwin' ]]; then brew install protobuf; fi;
|
||||||
|
- if [ -n "${COVERAGE}" ]; then
|
||||||
|
export CXX=g++-4.9;
|
||||||
|
export CC=gcc-4.9;
|
||||||
|
export CXXFLAGS="--coverage -g";
|
||||||
|
export CFLAGS="--coverage -g";
|
||||||
|
export LDFLAGS="--coverage";
|
||||||
|
fi;
|
||||||
- make
|
- make
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- make test
|
- make test
|
||||||
|
- if [ -n "${COVERAGE}" ]; then
|
||||||
|
rm vector_tile.pb.o;
|
||||||
|
${COVERAGE} -lp *.o;
|
||||||
|
pip install --user cpp-coveralls;
|
||||||
|
~/.local/bin/coveralls --no-gcov -i ./ --exclude clipper --exclude vector_tile.pb.cc --exclude vector_tile.pb.h;
|
||||||
|
fi
|
||||||
|
|||||||
@@ -52,7 +52,7 @@ libjsonpull.a: jsonpull.o
|
|||||||
ranlib $@
|
ranlib $@
|
||||||
|
|
||||||
%.o: %.c $(H)
|
%.o: %.c $(H)
|
||||||
cc $(PG) $(INCLUDES) -O3 -g -Wall $(CFLAGS) -c $<
|
$(CC) $(PG) $(INCLUDES) -O3 -g -Wall $(CFLAGS) -c $<
|
||||||
|
|
||||||
%.o: %.cc $(H)
|
%.o: %.cc $(H)
|
||||||
$(CXX) $(PG) $(INCLUDES) -O3 -g -Wall $(CXXFLAGS) -c $<
|
$(CXX) $(PG) $(INCLUDES) -O3 -g -Wall $(CXXFLAGS) -c $<
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ Builds [vector tilesets](https://www.mapbox.com/developers/vector-tiles/) from l
|
|||||||
features. This is a tool for [making maps from huge datasets](MADE_WITH.md).
|
features. This is a tool for [making maps from huge datasets](MADE_WITH.md).
|
||||||
|
|
||||||
[](https://travis-ci.org/mapbox/tippecanoe)
|
[](https://travis-ci.org/mapbox/tippecanoe)
|
||||||
|
[](https://coveralls.io/github/mapbox/tippecanoe?branch=master)
|
||||||
|
|
||||||
Intent
|
Intent
|
||||||
------
|
------
|
||||||
|
|||||||
Reference in New Issue
Block a user