mirror of
https://github.com/mapbox/tippecanoe.git
synced 2025-02-02 01:08:14 +00:00
Merge pull request #255 from mapbox/clang-mason
Try to use Mason builds for clang
This commit is contained in:
commit
864440e9a9
34
.travis.yml
34
.travis.yml
@ -7,27 +7,27 @@ matrix:
|
|||||||
# debug+integer-santizer build
|
# debug+integer-santizer build
|
||||||
- os: linux
|
- os: linux
|
||||||
compiler: clang
|
compiler: clang
|
||||||
env: BUILDTYPE=Debug CC="clang-3.5" CXX="clang++-3.5" CXXFLAGS="-fsanitize=integer" CFLAGS="-fsanitize=integer" LDFLAGS="-fsanitize=integer"
|
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"
|
||||||
addons:
|
addons:
|
||||||
apt:
|
apt:
|
||||||
sources: ['ubuntu-toolchain-r-test', 'llvm-toolchain-precise-3.5' ]
|
sources: ['ubuntu-toolchain-r-test' ]
|
||||||
packages: [ 'clang-3.5', 'llvm-3.5-dev' ]
|
packages: [ 'libstdc++6','libstdc++-5-dev' ]
|
||||||
# debug+leak+address-sanitizer build
|
# debug+leak+address-sanitizer build
|
||||||
- os: linux
|
- os: linux
|
||||||
compiler: clang
|
compiler: clang
|
||||||
env: BUILDTYPE=Debug ASAN_OPTIONS=detect_leaks=1 CC="clang-3.5" CXX="clang++-3.5" CXXFLAGS="-fsanitize=address" CFLAGS="-fsanitize=address" LDFLAGS="-fsanitize=address"
|
env: CLANG_VERSION='3.8.0' BUILDTYPE=Debug ASAN_OPTIONS=detect_leaks=1 CC="clang-3.8" CXX="clang++-3.8" CXXFLAGS="-fsanitize=address" CFLAGS="-fsanitize=address" LDFLAGS="-fsanitize=address"
|
||||||
addons:
|
addons:
|
||||||
apt:
|
apt:
|
||||||
sources: ['ubuntu-toolchain-r-test', 'llvm-toolchain-precise-3.5' ]
|
sources: ['ubuntu-toolchain-r-test' ]
|
||||||
packages: [ 'clang-3.5', 'llvm-3.5-dev' ]
|
packages: [ 'libstdc++6','libstdc++-5-dev' ]
|
||||||
# coverage+debug build
|
# coverage+debug build
|
||||||
- os: linux
|
- os: linux
|
||||||
compiler: clang
|
compiler: clang
|
||||||
env: BUILDTYPE=Debug CC="clang-3.5" CXX="clang++-3.5" CXXFLAGS="--coverage" CFLAGS="--coverage" LDFLAGS="--coverage"
|
env: CLANG_VERSION='3.8.0' BUILDTYPE=Debug CC="clang-3.8" CXX="clang++-3.8" CXXFLAGS="--coverage" CFLAGS="--coverage" LDFLAGS="--coverage"
|
||||||
addons:
|
addons:
|
||||||
apt:
|
apt:
|
||||||
sources: ['ubuntu-toolchain-r-test', 'llvm-toolchain-precise-3.5' ]
|
sources: ['ubuntu-toolchain-r-test' ]
|
||||||
packages: [ 'clang-3.5', 'llvm-3.5-dev' ]
|
packages: [ 'libstdc++6','libstdc++-5-dev' ]
|
||||||
# release+linux+g++
|
# release+linux+g++
|
||||||
- os: linux
|
- os: linux
|
||||||
compiler: gcc
|
compiler: gcc
|
||||||
@ -39,11 +39,11 @@ matrix:
|
|||||||
# release+linux+clang++
|
# release+linux+clang++
|
||||||
- os: linux
|
- os: linux
|
||||||
compiler: clang
|
compiler: clang
|
||||||
env: BUILDTYPE=Release CC="clang-3.5" CXX="clang++-3.5"
|
env: CLANG_VERSION='3.8.0' BUILDTYPE=Release CC="clang-3.8" CXX="clang++-3.8"
|
||||||
addons:
|
addons:
|
||||||
apt:
|
apt:
|
||||||
sources: ['ubuntu-toolchain-r-test', 'llvm-toolchain-precise-3.5' ]
|
sources: ['ubuntu-toolchain-r-test' ]
|
||||||
packages: [ 'clang-3.5' ]
|
packages: [ 'libstdc++6','libstdc++-5-dev' ]
|
||||||
# release+osx
|
# release+osx
|
||||||
- os: osx
|
- os: osx
|
||||||
compiler: clang
|
compiler: clang
|
||||||
@ -53,6 +53,16 @@ matrix:
|
|||||||
compiler: clang
|
compiler: clang
|
||||||
env: BUILDTYPE=Debug
|
env: BUILDTYPE=Debug
|
||||||
|
|
||||||
|
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
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- BUILDTYPE=${BUILDTYPE} make -j
|
- BUILDTYPE=${BUILDTYPE} make -j
|
||||||
|
Loading…
x
Reference in New Issue
Block a user