diff options
author | Daniel Black <daniel.black@au.ibm.com> | 2017-03-17 12:50:21 +1100 |
---|---|---|
committer | Sergey Vojtovich <svoj@mariadb.org> | 2017-04-06 11:26:34 -0400 |
commit | eb04ee5c9d2416aa45acd1353dff19f569e96317 (patch) | |
tree | 9eab1723f14447e4d364dcbfa49d3a2c942730ec /.travis.compiler.sh | |
parent | d235782fca0e3ffd70cf84d466b0c8059ceecdbb (diff) | |
download | mariadb-git-eb04ee5c9d2416aa45acd1353dff19f569e96317.tar.gz |
Travis: llvm, additional packages and container
Additionally use clang as a compiler, versions 3.8, 3.9 and 4.0
Additionally use gcc/g++-7
Add additional packages used by build now that they are whitelisted.
- libsnappy-dev - innodb compression
- liblzma-dev - innodb compression
- libzmq-dev - used my Mgoonga
- libdistro-info-perl - used by autobake-debian
Change to a container build as they tend to have more ram
Signed-off-by: Daniel Black <daniel.black@au.ibm.com>
Diffstat (limited to '.travis.compiler.sh')
-rwxr-xr-x | .travis.compiler.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/.travis.compiler.sh b/.travis.compiler.sh new file mode 100755 index 00000000000..155b3af2424 --- /dev/null +++ b/.travis.compiler.sh @@ -0,0 +1,12 @@ +#!/bin/sh +if [[ "${TRAVIS_OS_NAME}" == 'linux' && "${CXX}" == 'clang++' ]]; then + case ${GCC_VERSION} in + 4.8) MYSQL_BUILD_CXX=clang++-3.8;; + 5) MYSQL_BUILD_CXX=clang++-3.9;; + 6) MYSQL_BUILD_CXX=clang++-4.0;; + esac + export MYSQL_BUILD_CXX MYSQL_BUILD_CC=${MYSQL_BUILD_CXX/++/} +elif [[ "${TRAVIS_OS_NAME}" == 'linux' && "${CXX}" == 'g++' ]]; then + export MYSQL_BUILD_CXX=g++-${GCC_VERSION}; + export MYSQL_BUILD_CC=gcc-${GCC_VERSION} +fi |