mirror of
https://github.com/MariaDB/server.git
synced 2025-01-19 13:32:33 +01:00
78 lines
2.4 KiB
YAML
78 lines
2.4 KiB
YAML
# vim ft=yaml
|
|
# travis-ci.org definition
|
|
|
|
branches:
|
|
only:
|
|
- natsys/trunk
|
|
|
|
# non-container builds don't have enough RAM to reliably compile
|
|
sudo: required
|
|
dist: trusty
|
|
|
|
language: cpp
|
|
compiler:
|
|
- gcc
|
|
cache:
|
|
- apt
|
|
- ccache
|
|
|
|
env:
|
|
matrix:
|
|
- GCC_VERSION=4.8
|
|
- GCC_VERSION=5
|
|
- GCC_VERSION=6
|
|
|
|
addons:
|
|
apt:
|
|
sources:
|
|
- ubuntu-toolchain-r-test
|
|
# below requires https://github.com/travis-ci/apt-source-whitelist/pull/309
|
|
# - llvm-toolchain-trusty-3.8
|
|
# - llvm-toolchain-trusty-3.9
|
|
# llvm urls awaiting fix
|
|
# https://github.com/travis-ci/apt-source-whitelist/pull/288
|
|
# https://github.com/travis-ci/apt-source-whitelist/pull/309
|
|
packages: # make sure these match debian/control contents
|
|
- bison
|
|
- chrpath
|
|
- cmake
|
|
- debhelper
|
|
- dh-apparmor
|
|
- dpatch
|
|
- gdb
|
|
- libaio-dev
|
|
- libboost-dev
|
|
- libjudy-dev
|
|
- libncurses5-dev
|
|
- libpam0g-dev
|
|
- libpcre3-dev
|
|
- libreadline-gplv2-dev
|
|
- libstemmer-dev
|
|
- libssl-dev
|
|
- libnuma-dev
|
|
- libxml2-dev
|
|
- lsb-release
|
|
- perl
|
|
- po-debconf
|
|
- psmisc
|
|
- zlib1g-dev
|
|
- libcrack2-dev
|
|
- libjemalloc-dev
|
|
- devscripts # implicit for any build on Ubuntu
|
|
- libtcmalloc-minimal4
|
|
- valgrind
|
|
|
|
env:
|
|
- BUILD_TYPE="-DCMAKE_BUILD_TYPE=Debug -DWITH_JEMALLOC=yes -DSECURITY_HARDENED=no -DWITH_PIC=no ${TRAVIS_BUILD_DIR}" MTR_FLAGS=""
|
|
- BUILD_TYPE="-DCMAKE_BUILD_TYPE=Debug -DSECURITY_HARDENED=no -DWITH_PIC=no ${TRAVIS_BUILD_DIR}" MTR_FLAGS="--valgrind --valgrind-option=--show-reachable=no --valgrind-option=--num-callers=120"
|
|
- BUILD_TYPE="-DCMAKE_BUILD_TYPE=RelWithDebInfo -DWITH_JEMALLOC=yes -DSECURITY_HARDENED=yes ${TRAVIS_BUILD_DIR}" MTR_FLAGS=""
|
|
|
|
# libsnappy-dev # https://github.com/travis-ci/apt-package-whitelist/issues/3880
|
|
# liblzma-dev # https://github.com/travis-ci/apt-package-whitelist/issues/3879
|
|
# libzmq-dev # https://github.com/travis-ci/apt-package-whitelist/issues/3881
|
|
# libsystemd-daemon-dev # https://github.com/travis-ci/apt-package-whitelist/issues/3882
|
|
|
|
script:
|
|
- ${CC} --version ; ${CXX} --version
|
|
- cd "${TRAVIS_BUILD_DIR}"
|
|
- "LD_PRELOAD=/usr/lib/libtcmalloc_minimal.so.4 cmake -DWITH_INNOBASE_STORAGE_ENGINE=yes $BUILD_TYPE && LD_PRELOAD=/usr/lib/libtcmalloc_minimal.so.4 make -j $(grep -c processor /proc/cpuinfo) && cd ./mysql-test && ./mtr $MTR_FLAGS --suite=versioning --force --max-test-fail=0"
|