tippecanoe/.travis.yml

44 lines
1.2 KiB
YAML
Raw Normal View History

2016-04-26 19:41:27 +00:00
language: generic
2015-12-20 23:09:35 +00:00
sudo: false
matrix:
2015-12-20 23:11:15 +00:00
include:
2015-12-20 23:09:35 +00:00
- os: linux
compiler: gcc
2016-04-26 19:41:27 +00:00
env: COVERAGE=gcov-4.9 CC="gcc-4.9" CXX="g++-4.9"
2015-12-23 00:55:21 +00:00
addons:
apt:
sources: ['ubuntu-toolchain-r-test']
packages: [ 'g++-4.9', 'protobuf-compiler', 'libprotobuf-dev' ]
- os: linux
compiler: clang
2016-04-26 19:41:27 +00:00
env: CC="clang-3.5" CXX="clang++-3.5"
addons:
apt:
sources: ['ubuntu-toolchain-r-test', 'llvm-toolchain-precise-3.5' ]
packages: [ 'clang-3.5', 'protobuf-compiler', 'libprotobuf-dev' ]
2015-12-23 00:30:28 +00:00
- os: osx
compiler: clang
2015-12-20 23:09:35 +00:00
install:
- if [[ $(uname -s) == 'Darwin' ]]; then brew install protobuf; fi;
2015-12-23 00:55:21 +00:00
- if [ -n "${COVERAGE}" ]; then
export CXXFLAGS="--coverage -g";
export CFLAGS="--coverage -g";
2015-12-23 00:55:21 +00:00
export LDFLAGS="--coverage";
2016-04-25 17:22:14 +00:00
elif [[ $(uname -s) == 'Linux' ]]; then
export CXX=clang++;
2015-12-23 00:55:21 +00:00
fi;
2015-12-20 23:09:35 +00:00
- make
script:
2016-01-28 18:54:51 +00:00
- make test
2015-12-23 00:55:21 +00:00
- if [ -n "${COVERAGE}" ]; then
2015-12-23 01:23:56 +00:00
rm vector_tile.pb.o;
2015-12-23 00:55:21 +00:00
${COVERAGE} -lp *.o;
pip install --user cpp-coveralls;
2015-12-23 01:20:59 +00:00
~/.local/bin/coveralls --no-gcov -i ./ --exclude clipper --exclude vector_tile.pb.cc --exclude vector_tile.pb.h;
2015-12-23 00:55:21 +00:00
fi