Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
112 lines (103 sloc) 3.37 KB
sudo: false
language: cpp
env:
global:
- INSTALL_DIR=${TRAVIS_BUILD_DIR}/../install
- PROTOC="${INSTALL_DIR}/bin/protoc"
- MAKE=make
addons:
apt:
sources: &common_sources
- ubuntu-toolchain-r-test
- kalakris-cmake
packages: &common_packages
- autoconf
- automake
- build-essential
- python-dev
- libstdc++-4.9-dev
- tcl8.5
- cmake
matrix:
include:
- compiler: clang
os: osx
env: SSL=openssl
- compiler: clang
os: linux
env: SSL=boringssl LLVM=3.6.2
addons:
apt:
sources: *common_sources
packages:
- *common_packages
- compiler: clang
os: linux
env: SSL=openssl LLVM=3.6.2
addons:
apt:
sources: *common_sources
packages:
- *common_packages
- compiler: clang
os: linux
env: SSL=openssl LLVM=3.6.2 SANITIZE="-fsanitize=address -fno-omit-frame-pointer" ASAN_OPTIONS="detect_leaks=1:check_initialization_order=1" LSAN_OPTIONS="suppressions=${HOME}/lsan.supp"
addons:
apt:
sources: *common_sources
packages:
- *common_packages
exclude:
- compiler: gcc
os: linux
env: REAL_CC=gcc-4.9 REAL_CXX=g++-4.9
addons:
apt:
sources: *common_sources
packages:
- *common_packages
- g++-4.9
cache:
apt: true
pip: true
directories:
- $HOME/.cache/pip
- $HOME/.ccache
- $TRAVIS_BUILD_DIR/../ct
- $TRAVIS_BUILD_DIR/../depot_tools
- $TRAVIS_BUILD_DIR/../install
before_install:
- eval "$(gimme 1.7)"
# Set compiler version overrides if we have any:
- if [ "${REAL_CC}" != "" ]; then export CC=${REAL_CC} CXX=${REAL_CXX}; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then . ./build/travis.osx.before_install.sh; fi
# Set up sanitizer blacklists:
- echo "leak:InitModule" > ${HOME}/lsan.supp
- echo "leak:SetExitLoopHandler" >> ${HOME}/lsan.supp
- echo "leak:masterelection_test" >> ${HOME}/lsan.supp
- if [ "${CLEAR_CACHE}" != "" ]; then echo "Clearing cache"; rm -fr ${TRAVIS_BUILD_DIR}/../ct ${TRAVIS_BUILD_DIR}/../install ${HOME}/.ccache; fi
- mkdir -p ${INSTALL_DIR}/include ${INSTALL_DIR}/lib
- echo "INSTALL_DIR=${INSTALL_DIR}"
install:
# Workaround LLVM's apt mirror being feeble and underpowered
- |
if [ "$LLVM" != "" ]; then
CLANG_URL="http://llvm.org/releases/${LLVM}/clang+llvm-${LLVM}-x86_64-linux-gnu-ubuntu-14.04.tar.xz"
mkdir /tmp/clang && travis_retry wget --quiet -O - ${CLANG_URL} | tar --strip-components=1 -xJ -C /tmp/clang
export PATH="/tmp/clang/bin:${PATH}"
fi
- autoconf --version
- pushd ..
- mkdir -p ct
- if [ ! -e depot_tools/gclient ]; then git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git; fi
- export PATH="$PATH:/usr/local/bin:"`pwd`/depot_tools
- cd ct
- ln -s ../certificate-transparency certificate-transparency
- |-
gclient config --spec "solutions=[{\"name\": \"certificate-transparency\", \"url\": \"https://github.com/google/certificate-transparency.git\", \"deps_file\": \"DEPS\", \"managed\": False, \"custom_deps\": {}, \"safesync_url\": \"\", \"custom_vars\": { \"ssl_impl\": \"${SSL}\" } },]"
- gclient sync --disable-syntax-validation
- popd
- export PYTHONPATH=$(python -m site --user-site)
- pip2 install --user --upgrade -r python/requirements.txt
script:
- ./build/runtests.sh