2017-08-31 21:16:13 +00:00
|
|
|
language: node_js
|
2017-08-30 23:03:00 +00:00
|
|
|
node_js:
|
|
|
|
- "6"
|
|
|
|
|
2015-12-20 23:09:35 +00:00
|
|
|
sudo: false
|
|
|
|
|
|
|
|
matrix:
|
2015-12-20 23:11:15 +00:00
|
|
|
include:
|
2017-11-07 17:44:25 +00:00
|
|
|
# test on docker+centos7
|
|
|
|
- os: linux
|
|
|
|
compiler: clang
|
|
|
|
services:
|
|
|
|
- docker
|
|
|
|
sudo: true
|
|
|
|
dist: trusty
|
|
|
|
env: DOCKERFILE=Dockerfile.centos7
|
|
|
|
before_install: []
|
|
|
|
install:
|
|
|
|
- docker build -t tippecanoe-image -f ${DOCKERFILE} .
|
|
|
|
script:
|
|
|
|
- docker run -it tippecanoe-image
|
|
|
|
# test on docker+ubuntu
|
2017-11-01 20:42:42 +00:00
|
|
|
- os: linux
|
|
|
|
compiler: clang
|
|
|
|
services:
|
|
|
|
- docker
|
|
|
|
sudo: true
|
|
|
|
dist: trusty
|
|
|
|
env: DOCKERFILE=Dockerfile
|
|
|
|
before_install: []
|
|
|
|
install:
|
|
|
|
- docker build -t tippecanoe-image -f ${DOCKERFILE} .
|
|
|
|
script:
|
|
|
|
- docker run -it tippecanoe-image
|
2016-05-03 23:18:44 +00:00
|
|
|
# debug+integer-santizer build
|
|
|
|
- os: linux
|
|
|
|
compiler: clang
|
2016-06-07 00:21:29 +00:00
|
|
|
env: CLANG_VERSION='3.8.0' BUILDTYPE=Debug CC="clang-3.8" CXX="clang++-3.8" CXXFLAGS="-fsanitize=integer" CFLAGS="-fsanitize=integer" LDFLAGS="-fsanitize=integer"
|
2016-05-03 23:18:44 +00:00
|
|
|
addons:
|
|
|
|
apt:
|
2016-06-07 00:21:29 +00:00
|
|
|
sources: ['ubuntu-toolchain-r-test' ]
|
2016-06-07 00:27:32 +00:00
|
|
|
packages: [ 'libstdc++6','libstdc++-5-dev' ]
|
2016-05-03 23:18:44 +00:00
|
|
|
# debug+leak+address-sanitizer build
|
|
|
|
- os: linux
|
|
|
|
compiler: clang
|
2018-01-18 20:10:47 +00:00
|
|
|
env: CLANG_VERSION='3.8.0' BUILDTYPE=Debug ASAN_OPTIONS=detect_leaks=1 CC="clang-3.8" CXX="clang++-3.8" CXXFLAGS="-fsanitize=address,undefined" CFLAGS="-fsanitize=address,undefined" LDFLAGS="-fsanitize=address,undefined" FEWER=true
|
2016-05-03 23:18:44 +00:00
|
|
|
addons:
|
|
|
|
apt:
|
2016-06-07 00:21:29 +00:00
|
|
|
sources: ['ubuntu-toolchain-r-test' ]
|
2016-06-07 00:27:32 +00:00
|
|
|
packages: [ 'libstdc++6','libstdc++-5-dev' ]
|
2016-04-26 22:39:42 +00:00
|
|
|
# coverage+debug build
|
|
|
|
- os: linux
|
|
|
|
compiler: clang
|
2016-06-07 00:21:29 +00:00
|
|
|
env: CLANG_VERSION='3.8.0' BUILDTYPE=Debug CC="clang-3.8" CXX="clang++-3.8" CXXFLAGS="--coverage" CFLAGS="--coverage" LDFLAGS="--coverage"
|
2018-03-19 23:05:14 +00:00
|
|
|
after_script:
|
|
|
|
- mason install llvm-cov 3.9.1
|
|
|
|
- mason link llvm-cov 3.9.1
|
|
|
|
- which llvm-cov
|
|
|
|
- curl -S -f https://codecov.io/bash -o codecov
|
|
|
|
- chmod +x codecov
|
|
|
|
- ./codecov -x "llvm-cov gcov" -Z
|
2016-04-26 22:39:42 +00:00
|
|
|
addons:
|
|
|
|
apt:
|
2016-06-07 00:21:29 +00:00
|
|
|
sources: ['ubuntu-toolchain-r-test' ]
|
2016-06-07 00:27:32 +00:00
|
|
|
packages: [ 'libstdc++6','libstdc++-5-dev' ]
|
2016-04-26 22:39:42 +00:00
|
|
|
# release+linux+g++
|
2015-12-20 23:09:35 +00:00
|
|
|
- os: linux
|
2015-12-23 01:08:41 +00:00
|
|
|
compiler: gcc
|
2016-04-26 22:39:42 +00:00
|
|
|
env: BUILDTYPE=Release CC="gcc-4.9" CXX="g++-4.9"
|
2015-12-23 00:55:21 +00:00
|
|
|
addons:
|
|
|
|
apt:
|
2016-04-26 19:51:48 +00:00
|
|
|
sources: ['ubuntu-toolchain-r-test']
|
2016-04-26 20:50:08 +00:00
|
|
|
packages: [ 'g++-4.9' ]
|
2016-04-26 22:39:42 +00:00
|
|
|
# release+linux+clang++
|
2015-12-23 01:08:41 +00:00
|
|
|
- os: linux
|
|
|
|
compiler: clang
|
2016-06-07 00:21:29 +00:00
|
|
|
env: CLANG_VERSION='3.8.0' BUILDTYPE=Release CC="clang-3.8" CXX="clang++-3.8"
|
2015-12-23 01:08:41 +00:00
|
|
|
addons:
|
|
|
|
apt:
|
2016-06-07 00:21:29 +00:00
|
|
|
sources: ['ubuntu-toolchain-r-test' ]
|
2016-06-07 00:27:32 +00:00
|
|
|
packages: [ 'libstdc++6','libstdc++-5-dev' ]
|
2016-04-26 22:39:42 +00:00
|
|
|
# release+osx
|
2015-12-23 00:30:28 +00:00
|
|
|
- os: osx
|
2015-12-23 01:08:41 +00:00
|
|
|
compiler: clang
|
2016-04-26 22:39:42 +00:00
|
|
|
env: BUILDTYPE=Release
|
2016-04-26 22:46:58 +00:00
|
|
|
# debug+osx
|
|
|
|
- os: osx
|
|
|
|
compiler: clang
|
|
|
|
env: BUILDTYPE=Debug
|
2015-12-20 23:09:35 +00:00
|
|
|
|
2016-06-07 00:21:29 +00:00
|
|
|
before_install:
|
|
|
|
- DEPS_DIR="${TRAVIS_BUILD_DIR}/deps"
|
|
|
|
- export PATH=${DEPS_DIR}/bin:${PATH} && mkdir -p ${DEPS_DIR}
|
|
|
|
- |
|
|
|
|
if [[ ${CLANG_VERSION:-false} != false ]]; then
|
|
|
|
export CCOMPILER='clang'
|
|
|
|
export CXXCOMPILER='clang++'
|
|
|
|
CLANG_URL="https://mason-binaries.s3.amazonaws.com/${TRAVIS_OS_NAME}-x86_64/clang/${CLANG_VERSION}.tar.gz"
|
|
|
|
travis_retry wget --quiet -O - ${CLANG_URL} | tar --strip-components=1 -xz -C ${DEPS_DIR}
|
|
|
|
fi
|
2015-12-20 23:09:35 +00:00
|
|
|
|
|
|
|
install:
|
2016-04-27 19:22:47 +00:00
|
|
|
- BUILDTYPE=${BUILDTYPE} make -j
|
2015-12-20 23:09:35 +00:00
|
|
|
|
|
|
|
script:
|
2017-08-30 22:25:47 +00:00
|
|
|
- npm install geobuf
|
2017-09-05 21:02:43 +00:00
|
|
|
- if [ -n "${FEWER}" ]; then
|
|
|
|
BUILDTYPE=${BUILDTYPE} make fewer-tests; else
|
|
|
|
BUILDTYPE=${BUILDTYPE} make test geobuf-test;
|
|
|
|
fi
|