mirror of
https://github.com/felt/tippecanoe.git
synced 2026-10-05 01:45:41 +02:00
Explict Release/Debug modes to build
This commit is contained in:
+18
-14
@@ -4,39 +4,43 @@ sudo: false
|
||||
|
||||
matrix:
|
||||
include:
|
||||
# coverage+debug build
|
||||
- os: linux
|
||||
compiler: clang
|
||||
env: BUILDTYPE=Debug CC="clang-3.5" CXX="clang++-3.5" CXXFLAGS="--coverage" CFLAGS="--coverage" LDFLAGS="--coverage"
|
||||
addons:
|
||||
apt:
|
||||
sources: ['ubuntu-toolchain-r-test', 'llvm-toolchain-precise-3.5' ]
|
||||
packages: [ 'clang-3.5', 'llvm-3.5-dev' ]
|
||||
# release+linux+g++
|
||||
- os: linux
|
||||
compiler: gcc
|
||||
env: COVERAGE=gcov-4.9 CC="gcc-4.9" CXX="g++-4.9"
|
||||
env: BUILDTYPE=Release CC="gcc-4.9" CXX="g++-4.9"
|
||||
addons:
|
||||
apt:
|
||||
sources: ['ubuntu-toolchain-r-test']
|
||||
packages: [ 'g++-4.9' ]
|
||||
# release+linux+clang++
|
||||
- os: linux
|
||||
compiler: clang
|
||||
env: CC="clang-3.5" CXX="clang++-3.5"
|
||||
env: BUILDTYPE=Release CC="clang-3.5" CXX="clang++-3.5"
|
||||
addons:
|
||||
apt:
|
||||
sources: ['ubuntu-toolchain-r-test', 'llvm-toolchain-precise-3.5' ]
|
||||
packages: [ 'clang-3.5' ]
|
||||
# release+osx
|
||||
- os: osx
|
||||
compiler: clang
|
||||
env: BUILDTYPE=Release
|
||||
|
||||
|
||||
install:
|
||||
- if [ -n "${COVERAGE}" ]; then
|
||||
export CXXFLAGS="--coverage -g";
|
||||
export CFLAGS="--coverage -g";
|
||||
export LDFLAGS="--coverage";
|
||||
elif [[ $(uname -s) == 'Linux' ]]; then
|
||||
export CXX=clang++;
|
||||
fi;
|
||||
- make
|
||||
- BUILDTYPE=${BUILDTYPE} make
|
||||
|
||||
script:
|
||||
- make test
|
||||
- BUILDTYPE=${BUILDTYPE} make test
|
||||
- if [ -n "${COVERAGE}" ]; then
|
||||
rm vector_tile.pb.o;
|
||||
${COVERAGE} -lp *.o;
|
||||
/usr/bin/llvm-cov-3.5 -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;
|
||||
~/.local/bin/coveralls --no-gcov -i ./ --exclude clipper;
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user