Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
MDEV-16213: Further improvements to the Travis config
* Exclude some storage engines from Travis to conserve build time and disk usage per job. Exluded: TOKUDB MROONGA SPIDER OQGRAPH PERFSCHEMA SPHINX * Increase travis_wait from default 20m to 30 for MTR * Use travis_wait for long running MTR command (wait 30m instead of default 20m) * Increase testcase-timeout to 20m for OSX, 2m for Linux * Set ccache size only on Linux, adjust timeout again * Increase cache push timeout to 5 mins * Remove AWS defines, not needed * Remove commented out ASAN rules, has been disabled previously since it has a significant impact on job runtime, should be used more in buildbot instead * Misc cleanup and fixes
- Loading branch information
Showing
2 changed files
with
56 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,45 +1,51 @@ | ||
| #!/bin/sh | ||
| set -v -x | ||
|
|
||
| # Exclude modules from build not directly affecting the current | ||
| # test suites found in $MYSQL_TEST_SUITES, to conserve job time | ||
| # as well as disk usage | ||
|
|
||
| function exclude_modules() { | ||
| # excludes for all | ||
| CMAKE_OPT="${CMAKE_OPT} -DPLUGIN_TOKUDB=NO -DPLUGIN_MROONGA=NO -DPLUGIN_SPIDER=NO -DPLUGIN_OQGRAPH=NO -DPLUGIN_PERFSCHEMA=NO -DPLUGIN_SPHINX=NO" | ||
| # exclude storage engines not being tested in current job | ||
| if [[ ! "${MYSQL_TEST_SUITES}" =~ "archive" ]]; then | ||
| CMAKE_OPT="${CMAKE_OPT} -DPLUGIN_ARCHIVE=NO" | ||
| fi | ||
| if [[ ! "${MYSQL_TEST_SUITES}" =~ "rocksdb" ]]; then | ||
| CMAKE_OPT="${CMAKE_OPT} -DPLUGIN_ROCKSDB=NO" | ||
| fi | ||
| } | ||
|
|
||
| if [[ "${TRAVIS_OS_NAME}" == 'linux' ]]; then | ||
| TEST_CASE_TIMEOUT=2 | ||
| exclude_modules; | ||
| if which ccache ; then | ||
| CMAKE_OPT="${CMAKE_OPT} -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache" | ||
| ccache --max-size=1200M | ||
| fi | ||
| if [[ "${CXX}" == 'clang++' ]]; then | ||
| CMAKE_OPT="-DWITHOUT_TOKUDB_STORAGE_ENGINE=ON -DWITHOUT_MROONGA_STORAGE_ENGINE=ON" | ||
| #CMAKE_OPT="${CMAKE_OPT} -DWITH_ASAN=ON" | ||
| if which ccache ; then | ||
| CMAKE_OPT="${CMAKE_OPT} -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache" | ||
| fi | ||
| export CXX CC=${CXX/++/} | ||
| elif [[ "${CXX}" == 'g++' ]]; then | ||
| CMAKE_OPT="" | ||
| if [[ "${MYSQL_TEST_SUITES}" == 'rpl' ]]; then | ||
| CMAKE_OPT="${CMAKE_OPT} -DWITHOUT_TOKUDB_STORAGE_ENGINE=TRUE" | ||
| CMAKE_OPT="${CMAKE_OPT} -DWITHOUT_MROONGA_STORAGE_ENGINE=TRUE" | ||
| fi | ||
| export CXX=g++-${CC_VERSION} | ||
| export CC=gcc-${CC_VERSION} | ||
| fi | ||
| if [[ ${CC_VERSION} == 6 ]]; then | ||
| wget http://mirrors.kernel.org/ubuntu/pool/universe/p/percona-xtradb-cluster-galera-2.x/percona-xtradb-cluster-galera-2.x_165-0ubuntu1_amd64.deb ; | ||
| ar vx percona-xtradb-cluster-galera-2.x_165-0ubuntu1_amd64.deb | ||
| tar -xJvf data.tar.xz | ||
| export WSREP_PROVIDER=$PWD/usr/lib/libgalera_smm.so | ||
| MYSQL_TEST_SUITES="${MYSQL_TEST_SUITES},wsrep" | ||
| #elif [[ ${CC_VERSION} != 5 ]]; then | ||
| #CMAKE_OPT="${CMAKE_OPT} -DWITH_ASAN=ON" | ||
| wget http://mirrors.kernel.org/ubuntu/pool/universe/p/percona-xtradb-cluster-galera-2.x/percona-xtradb-cluster-galera-2.x_165-0ubuntu1_amd64.deb ; | ||
| ar vx percona-xtradb-cluster-galera-2.x_165-0ubuntu1_amd64.deb | ||
| tar -xJvf data.tar.xz | ||
| export WSREP_PROVIDER=$PWD/usr/lib/libgalera_smm.so | ||
| MYSQL_TEST_SUITES="${MYSQL_TEST_SUITES},wsrep" | ||
| fi | ||
| else | ||
| # osx_image based tests | ||
| CMAKE_OPT="-DOPENSSL_ROOT_DIR=/usr/local/opt/openssl" | ||
| #CMAKE_OPT="${CMAKE_OPT} -DWITH_ASAN=ON" | ||
| fi | ||
|
|
||
| if [[ "${TRAVIS_OS_NAME}" == 'osx' ]]; then | ||
| TEST_CASE_TIMEOUT=20 | ||
| exclude_modules; | ||
| CMAKE_OPT="${CMAKE_OPT} -DOPENSSL_ROOT_DIR=/usr/local/opt/openssl" | ||
| if which ccache ; then | ||
| CMAKE_OPT="${CMAKE_OPT} -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache" | ||
| fi | ||
| if [[ "${MYSQL_TEST_SUITES}" == 'rpl' ]]; then | ||
| CMAKE_OPT="${CMAKE_OPT} -DWITHOUT_TOKUDB_STORAGE_ENGINE=ON" | ||
| fi | ||
| CMAKE_OPT="${CMAKE_OPT} -DWITHOUT_MROONGA_STORAGE_ENGINE=ON" | ||
| if [[ "${TYPE}" == "Debug" ]]; then | ||
| CMAKE_OPT="${CMAKE_OPT} -DWITHOUT_TOKUDB_STORAGE_ENGINE=ON" | ||
| fi | ||
| fi | ||
|
|
||
| set +v +x |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters