mirror of
https://github.com/mapbox/tippecanoe.git
synced 2025-01-22 04:18:01 +00:00
travis: run coverage first, build in debug
This commit is contained in:
parent
893604ca94
commit
1f971bdfbd
16
.travis.yml
16
.travis.yml
@ -5,23 +5,26 @@ sudo: false
|
|||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- os: linux
|
- os: linux
|
||||||
addons:
|
compiler: gcc
|
||||||
apt:
|
|
||||||
packages: [ 'protobuf-compiler', 'libprotobuf-dev' ]
|
|
||||||
- os: linux
|
|
||||||
env: COVERAGE=gcov-4.9 CXX=g++-4.9 CC=gcc-4.9
|
env: COVERAGE=gcov-4.9 CXX=g++-4.9 CC=gcc-4.9
|
||||||
addons:
|
addons:
|
||||||
apt:
|
apt:
|
||||||
sources: ['ubuntu-toolchain-r-test']
|
sources: ['ubuntu-toolchain-r-test']
|
||||||
packages: [ 'g++-4.9', 'protobuf-compiler', 'libprotobuf-dev' ]
|
packages: [ 'g++-4.9', 'protobuf-compiler', 'libprotobuf-dev' ]
|
||||||
|
- os: linux
|
||||||
|
compiler: clang
|
||||||
|
addons:
|
||||||
|
apt:
|
||||||
|
packages: [ 'protobuf-compiler', 'libprotobuf-dev' ]
|
||||||
- os: osx
|
- os: osx
|
||||||
|
compiler: clang
|
||||||
|
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- if [[ $(uname -s) == 'Darwin' ]]; then brew install protobuf; fi;
|
- if [[ $(uname -s) == 'Darwin' ]]; then brew install protobuf; fi;
|
||||||
- if [ -n "${COVERAGE}" ]; then
|
- if [ -n "${COVERAGE}" ]; then
|
||||||
export CXXFLAGS="--coverage";
|
export CXXFLAGS="--coverage -g";
|
||||||
export CFLAGS="--coverage";
|
export CFLAGS="--coverage -g";
|
||||||
export LDFLAGS="--coverage";
|
export LDFLAGS="--coverage";
|
||||||
fi;
|
fi;
|
||||||
- make
|
- make
|
||||||
@ -30,6 +33,7 @@ script:
|
|||||||
- echo '{"type":"Feature","properties":{},"geometry":{"type":"Point","coordinates":[0,0]}}' > test.json
|
- echo '{"type":"Feature","properties":{},"geometry":{"type":"Point","coordinates":[0,0]}}' > test.json
|
||||||
- ./tippecanoe -o test.mbtiles test.json
|
- ./tippecanoe -o test.mbtiles test.json
|
||||||
- if [ -n "${COVERAGE}" ]; then
|
- if [ -n "${COVERAGE}" ]; then
|
||||||
|
ls
|
||||||
${COVERAGE} -lp *.o;
|
${COVERAGE} -lp *.o;
|
||||||
pip install --user cpp-coveralls;
|
pip install --user cpp-coveralls;
|
||||||
~/.local/bin/coveralls --no-gcov -i ./;
|
~/.local/bin/coveralls --no-gcov -i ./;
|
||||||
|
Loading…
Reference in New Issue
Block a user