tippecanoe/.travis.yml

37 lines
928 B
YAML
Raw Normal View History

2015-12-20 15:09:35 -08:00
language: c
sudo: false
matrix:
2015-12-20 15:11:15 -08:00
include:
2015-12-20 15:09:35 -08:00
- os: linux
addons:
apt:
packages: [ 'protobuf-compiler', 'libprotobuf-dev' ]
2015-12-22 16:55:21 -08:00
- os: linux
env: COVERAGE=gcov-4.9 CXX=g++-4.9 CC=gcc-4.9
2015-12-22 16:55:21 -08:00
addons:
apt:
sources: ['ubuntu-toolchain-r-test']
packages: [ 'g++-4.9', 'protobuf-compiler', 'libprotobuf-dev' ]
2015-12-22 16:30:28 -08:00
- os: osx
2015-12-20 15:09:35 -08:00
install:
2015-12-22 16:30:28 -08:00
- if [[ $(uname -s) == 'Darwin' ]]; then brew install protobuf; fi;
2015-12-22 16:55:21 -08:00
- if [ -n "${COVERAGE}" ]; then
export CXXFLAGS="--coverage";
export CFLAGS="--coverage";
export LDFLAGS="--coverage";
fi;
2015-12-20 15:09:35 -08:00
- make
script:
- echo '{"type":"Feature","properties":{},"geometry":{"type":"Point","coordinates":[0,0]}}' > test.json
- ./tippecanoe -o test.mbtiles test.json
2015-12-22 16:55:21 -08:00
- if [ -n "${COVERAGE}" ]; then
${COVERAGE} -lp *.o;
pip install --user cpp-coveralls;
~/.local/bin/coveralls --no-gcov -i ./;
fi