2016-08-18 10:47:20 +02:00
|
|
|
# vim ft=yaml
|
|
|
|
# travis-ci.org definition
|
|
|
|
|
2017-03-17 02:50:21 +01:00
|
|
|
sudo: false
|
2018-12-25 13:01:13 +01:00
|
|
|
dist: xenial
|
2016-08-18 10:47:20 +02:00
|
|
|
|
2017-04-02 12:20:32 +02:00
|
|
|
git:
|
|
|
|
depth: 2
|
|
|
|
|
2016-08-18 10:47:20 +02:00
|
|
|
language: cpp
|
2020-01-28 14:51:20 +01:00
|
|
|
os: osx
|
2018-11-23 00:28:07 +01:00
|
|
|
osx_image: xcode10.1
|
2016-08-18 10:47:20 +02:00
|
|
|
compiler:
|
|
|
|
- gcc
|
2017-03-17 02:50:21 +01:00
|
|
|
- clang
|
2017-04-02 12:20:32 +02:00
|
|
|
|
2016-08-18 10:47:20 +02:00
|
|
|
cache:
|
2018-12-26 17:55:54 +01:00
|
|
|
timeout: 500
|
2017-04-02 12:20:32 +02:00
|
|
|
apt: true
|
MDEV-16213: Improvements and adjustments to Travis config
Several improvements have been made so that builds run
faster and with fewer canceled jobs:
* Set ccache max size to 1GB. Was 512MB for Linux
(too low for MariaDB) and 5GB on macOS with defaults;
* Don't install libasan in Travis if not necessary.
Sicne ASAN is disabled for the time being, save
time/resources for other steps;
* Decrease number of parallel processes. To prevent
resource exhaustion leading to poor performance. According
to Travis docs, a max of 4 concurrent processses should be
run per job:
https://docs.travis-ci.com/user/common-build-problems/#My-build-script-is-killed-without-any-error
* Reconsider tests exec order and split huge main and rocksdb
test suites into their own job, decreasing the chance of going
over the Travis job execution limit and getting killed;
* Increase Travis testcase-timeout to 4 minutes. Occasionally
on Ubuntu target and frequently on macOS, many tests in main,
rpl, binlog suites take longer than 2 minutes, resulting in
many jobs failing, when in reality the failing tests didn't
get a chance to complete. From my testing, along with the other
speedups, i.e. increasing ccache size, a timeout of 4 minutes
should be Ok. Revert to 3 minutes of necessary.
* Build with GCC and Clang version 5,6 only.
* Rename GCC_VERSION to CC_VERSION for clarity. We are using
two compilers after all, GCC and Clang.
* Stop using somewhat obsolete Clang4 in Travis. Also, was the
reason for the failing test suites in MDEV-15430.
2018-05-29 09:26:01 +02:00
|
|
|
ccache: true
|
2017-04-02 12:20:32 +02:00
|
|
|
directories:
|
2017-11-17 05:18:16 +01:00
|
|
|
- /usr/local/Cellar # Fails do to permission error: https://github.com/travis-ci/travis-ci/issues/8092
|
2016-08-18 10:47:20 +02:00
|
|
|
|
2016-08-24 05:29:09 +02:00
|
|
|
env:
|
|
|
|
matrix:
|
2018-11-23 00:41:38 +01:00
|
|
|
- CC_VERSION=6 TYPE=RelWithDebInfo MYSQL_TEST_SUITES=main
|
|
|
|
- CC_VERSION=6 TYPE=RelWithDebInfo MYSQL_TEST_SUITES=archive,optimizer_unfixed_bugs,parts,sys_vars,unit,vcol,innodb,innodb_gis,innodb_zip,innodb_fts
|
|
|
|
- CC_VERSION=6 TYPE=RelWithDebInfo MYSQL_TEST_SUITES=rpl
|
|
|
|
- CC_VERSION=7 TYPE=RelWithDebInfo MYSQL_TEST_SUITES=binlog,binlog_encryption,encryption
|
2019-01-14 08:40:12 +01:00
|
|
|
- CC_VERSION=7 TYPE=RelWithDebInfo MYSQL_TEST_SUITES=rocksdb,versioning
|
2018-11-23 00:41:38 +01:00
|
|
|
- CC_VERSION=7 TYPE=RelWithDebInfo MYSQL_TEST_SUITES=csv,federated,funcs_1,funcs_2,gcol,handler,heap,json,maria,perfschema,plugins,multi_source,roles
|
2018-11-23 01:11:45 +01:00
|
|
|
- CC_VERSION=8 TYPE=RelWithDebInfo MYSQL_TEST_SUITES=main
|
2020-01-28 14:51:20 +01:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources: &add-sources
|
|
|
|
- ubuntu-toolchain-r-test
|
|
|
|
- llvm-toolchain-xenial-6.0
|
|
|
|
- llvm-toolchain-xenial-7
|
|
|
|
- sourceline: 'deb [arch=amd64,arm64,i386,ppc64el] http://ftp.osuosl.org/pub/mariadb/repo/10.4/ubuntu xenial main'
|
|
|
|
key_url: 'http://keyserver.ubuntu.com/pks/lookup?search=0xF1656F24C74CD1D8&op=get'
|
|
|
|
packages: &common-packages
|
|
|
|
# make sure these include all compilers and all build dependencies (see list above)
|
|
|
|
- gcc-6
|
|
|
|
- g++-6
|
|
|
|
- gcc-7
|
|
|
|
- g++-7
|
|
|
|
- gcc-8
|
|
|
|
- g++-8
|
|
|
|
- clang-6.0
|
|
|
|
- llvm-6.0-dev
|
|
|
|
- clang-7
|
|
|
|
- llvm-7-dev
|
|
|
|
- bison
|
|
|
|
- chrpath
|
|
|
|
- cmake
|
|
|
|
- gdb
|
|
|
|
- libaio-dev
|
|
|
|
- libboost-dev
|
|
|
|
- libcurl3-dev
|
|
|
|
- libdbd-mysql
|
|
|
|
- libjudy-dev
|
|
|
|
- libncurses5-dev
|
|
|
|
- libpam0g-dev
|
|
|
|
- libpcre3-dev
|
|
|
|
- libreadline-gplv2-dev
|
|
|
|
- libstemmer-dev
|
|
|
|
- libssl-dev
|
|
|
|
- libnuma-dev
|
|
|
|
- libxml2-dev
|
|
|
|
- lsb-release
|
|
|
|
- perl
|
|
|
|
- psmisc
|
|
|
|
- zlib1g-dev
|
|
|
|
- libcrack2-dev
|
|
|
|
- cracklib-runtime
|
|
|
|
- libjemalloc-dev
|
|
|
|
- libsnappy-dev
|
|
|
|
- liblzma-dev
|
|
|
|
- uuid-dev
|
|
|
|
|
|
|
|
# libsystemd-daemon-dev # https://github.com/travis-ci/apt-package-whitelist/issues/3882
|
|
|
|
|
2017-03-17 02:50:21 +01:00
|
|
|
|
2017-04-02 12:20:32 +02:00
|
|
|
matrix:
|
2017-04-10 11:11:01 +02:00
|
|
|
exclude:
|
2017-04-02 12:20:32 +02:00
|
|
|
- os: osx
|
2017-04-10 11:11:01 +02:00
|
|
|
compiler: gcc
|
2018-11-23 01:11:45 +01:00
|
|
|
- os: osx
|
|
|
|
compiler: clang
|
|
|
|
env: CC_VERSION=8 TYPE=RelWithDebInfo MYSQL_TEST_SUITES=main
|
2017-04-02 12:20:32 +02:00
|
|
|
include:
|
2017-04-10 11:11:01 +02:00
|
|
|
- os: linux
|
|
|
|
compiler: gcc
|
2017-11-17 05:12:44 +01:00
|
|
|
env:
|
|
|
|
- DebPackages
|
2017-07-07 02:19:02 +02:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages: # make sure these match debian/control contents
|
|
|
|
- bison
|
|
|
|
- chrpath
|
|
|
|
- cmake
|
|
|
|
- debhelper
|
|
|
|
- dh-apparmor
|
|
|
|
- dpatch
|
|
|
|
- gdb
|
|
|
|
- libaio-dev
|
|
|
|
- libboost-dev
|
|
|
|
- libcurl3-dev
|
|
|
|
- libdbd-mysql
|
|
|
|
- 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
|
2017-07-11 10:09:38 +02:00
|
|
|
- cracklib-runtime
|
2017-07-07 02:19:02 +02:00
|
|
|
- libjemalloc-dev
|
|
|
|
- libsnappy-dev
|
|
|
|
- liblzma-dev
|
|
|
|
- libzmq-dev
|
|
|
|
- libdistro-info-perl
|
|
|
|
- uuid-dev
|
|
|
|
- devscripts
|
|
|
|
- fakeroot
|
2018-12-25 13:01:13 +01:00
|
|
|
- dh-systemd
|
|
|
|
- libsystemd-dev
|
|
|
|
- libzstd-dev
|
|
|
|
- unixodbc-dev
|
2017-04-02 12:20:32 +02:00
|
|
|
script:
|
2017-04-10 11:11:01 +02:00
|
|
|
- ${CC} --version ; ${CXX} --version
|
MDEV-16213: Improvements and adjustments to Travis config
Several improvements have been made so that builds run
faster and with fewer canceled jobs:
* Set ccache max size to 1GB. Was 512MB for Linux
(too low for MariaDB) and 5GB on macOS with defaults;
* Don't install libasan in Travis if not necessary.
Sicne ASAN is disabled for the time being, save
time/resources for other steps;
* Decrease number of parallel processes. To prevent
resource exhaustion leading to poor performance. According
to Travis docs, a max of 4 concurrent processses should be
run per job:
https://docs.travis-ci.com/user/common-build-problems/#My-build-script-is-killed-without-any-error
* Reconsider tests exec order and split huge main and rocksdb
test suites into their own job, decreasing the chance of going
over the Travis job execution limit and getting killed;
* Increase Travis testcase-timeout to 4 minutes. Occasionally
on Ubuntu target and frequently on macOS, many tests in main,
rpl, binlog suites take longer than 2 minutes, resulting in
many jobs failing, when in reality the failing tests didn't
get a chance to complete. From my testing, along with the other
speedups, i.e. increasing ccache size, a timeout of 4 minutes
should be Ok. Revert to 3 minutes of necessary.
* Build with GCC and Clang version 5,6 only.
* Rename GCC_VERSION to CC_VERSION for clarity. We are using
two compilers after all, GCC and Clang.
* Stop using somewhat obsolete Clang4 in Travis. Also, was the
reason for the failing test suites in MDEV-15430.
2018-05-29 09:26:01 +02:00
|
|
|
- env DEB_BUILD_OPTIONS="parallel=4" debian/autobake-deb.sh;
|
2020-01-28 14:51:20 +01:00
|
|
|
- os: linux
|
|
|
|
arch: s390x
|
|
|
|
dist: bionic
|
|
|
|
compiler: gcc
|
|
|
|
env:
|
|
|
|
- DebPackages
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages: # make sure these match debian/control contents
|
|
|
|
- bison
|
|
|
|
- chrpath
|
|
|
|
- cmake
|
|
|
|
- debhelper
|
|
|
|
- dh-apparmor
|
|
|
|
- dpatch
|
|
|
|
- gdb
|
|
|
|
- libaio-dev
|
|
|
|
- libboost-dev
|
|
|
|
- libcurl3-dev
|
|
|
|
- libdbd-mysql
|
|
|
|
- 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
|
|
|
|
- cracklib-runtime
|
|
|
|
- libjemalloc-dev
|
|
|
|
- libsnappy-dev
|
|
|
|
- galera-3
|
|
|
|
- liblzma-dev
|
|
|
|
- libzmq3-dev
|
|
|
|
- libdistro-info-perl
|
|
|
|
- uuid-dev
|
|
|
|
- devscripts
|
|
|
|
- fakeroot
|
|
|
|
- dh-systemd
|
|
|
|
- libsystemd-dev
|
|
|
|
- libzstd-dev
|
|
|
|
- unixodbc-dev
|
|
|
|
script:
|
|
|
|
- ${CC} --version ; ${CXX} --version
|
|
|
|
- env DEB_BUILD_OPTIONS="parallel=4" debian/autobake-deb.sh;
|
|
|
|
- os: linux
|
|
|
|
compiler: gcc
|
|
|
|
env: CC_VERSION=6 TYPE=RelWithDebInfo MYSQL_TEST_SUITES=main
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources: *add-sources
|
|
|
|
packages: [ *common-packages, galera-4, libzmq-dev]
|
|
|
|
- os: linux
|
|
|
|
compiler: gcc
|
|
|
|
env: CC_VERSION=6 TYPE=RelWithDebInfo MYSQL_TEST_SUITES=archive,optimizer_unfixed_bugs,parts,sys_vars,unit,vcol,innodb,innodb_gis,innodb_zip,innodb_fts
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources: *add-sources
|
|
|
|
packages: [ *common-packages, galera-4, libzmq-dev]
|
|
|
|
- os: linux
|
|
|
|
compiler: gcc
|
|
|
|
env: CC_VERSION=6 TYPE=RelWithDebInfo MYSQL_TEST_SUITES=rpl
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources: *add-sources
|
|
|
|
packages: [ *common-packages, galera-4, libzmq-dev]
|
|
|
|
- os: linux
|
|
|
|
compiler: gcc
|
|
|
|
env: CC_VERSION=7 TYPE=RelWithDebInfo MYSQL_TEST_SUITES=binlog,binlog_encryption,encryption
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources: *add-sources
|
|
|
|
packages: [ *common-packages, galera-4, libzmq-dev]
|
|
|
|
- os: linux
|
|
|
|
compiler: gcc
|
|
|
|
env: CC_VERSION=7 TYPE=RelWithDebInfo MYSQL_TEST_SUITES=rocksdb,versioning
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources: *add-sources
|
|
|
|
packages: [ *common-packages, galera-4, libzmq-dev]
|
|
|
|
- os: linux
|
|
|
|
compiler: gcc
|
|
|
|
env: CC_VERSION=7 TYPE=RelWithDebInfo MYSQL_TEST_SUITES=csv,federated,funcs_1,funcs_2,gcol,handler,heap,json,maria,perfschema,plugins,multi_source,roles
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources: *add-sources
|
|
|
|
packages: [ *common-packages, galera-4, libzmq-dev]
|
|
|
|
- os: linux
|
|
|
|
compiler: gcc
|
|
|
|
env: CC_VERSION=8 TYPE=RelWithDebInfo MYSQL_TEST_SUITES=main
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources: *add-sources
|
|
|
|
packages: [ *common-packages, galera-4, libzmq-dev]
|
|
|
|
- os: linux
|
|
|
|
compiler: clang
|
|
|
|
env: CC_VERSION=6 TYPE=RelWithDebInfo MYSQL_TEST_SUITES=main
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources: *add-sources
|
|
|
|
packages: [ *common-packages, galera-4, libzmq-dev]
|
|
|
|
- os: linux
|
|
|
|
compiler: clang
|
|
|
|
env: CC_VERSION=6 TYPE=RelWithDebInfo MYSQL_TEST_SUITES=archive,optimizer_unfixed_bugs,parts,sys_vars,unit,vcol,innodb,innodb_gis,innodb_zip,innodb_fts
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources: *add-sources
|
|
|
|
packages: [ *common-packages, galera-4, libzmq-dev]
|
|
|
|
- os: linux
|
|
|
|
compiler: clang
|
|
|
|
env: CC_VERSION=6 TYPE=RelWithDebInfo MYSQL_TEST_SUITES=rpl
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources: *add-sources
|
|
|
|
packages: [ *common-packages, galera-4, libzmq-dev]
|
|
|
|
- os: linux
|
|
|
|
compiler: clang
|
|
|
|
env: CC_VERSION=7 TYPE=RelWithDebInfo MYSQL_TEST_SUITES=binlog,binlog_encryption,encryption
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources: *add-sources
|
|
|
|
packages: [ *common-packages, galera-4, libzmq-dev]
|
|
|
|
- os: linux
|
|
|
|
compiler: clang
|
|
|
|
env: CC_VERSION=7 TYPE=RelWithDebInfo MYSQL_TEST_SUITES=rocksdb,versioning
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources: *add-sources
|
|
|
|
packages: [ *common-packages, galera-4, libzmq-dev]
|
|
|
|
- os: linux
|
|
|
|
compiler: clang
|
|
|
|
env: CC_VERSION=7 TYPE=RelWithDebInfo MYSQL_TEST_SUITES=csv,federated,funcs_1,funcs_2,gcol,handler,heap,json,maria,perfschema,plugins,multi_source,roles
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources: *add-sources
|
|
|
|
packages: [ *common-packages, galera-4, libzmq-dev]
|
|
|
|
#s390x matrix
|
|
|
|
- os: linux
|
|
|
|
arch: s390x
|
|
|
|
dist: bionic
|
|
|
|
compiler: gcc
|
|
|
|
env: CC_VERSION=6 TYPE=RelWithDebInfo MYSQL_TEST_SUITES=main
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources: *add-sources
|
|
|
|
packages: [ *common-packages, galera-3, libzmq3-dev]
|
|
|
|
- os: linux
|
|
|
|
arch: s390x
|
|
|
|
dist: bionic
|
|
|
|
compiler: gcc
|
|
|
|
env: CC_VERSION=6 TYPE=RelWithDebInfo MYSQL_TEST_SUITES=archive,optimizer_unfixed_bugs,parts,sys_vars,unit,vcol,innodb,innodb_gis,innodb_zip,innodb_fts
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources: *add-sources
|
|
|
|
packages: [ *common-packages, galera-3, libzmq3-dev]
|
|
|
|
- os: linux
|
|
|
|
arch: s390x
|
|
|
|
dist: bionic
|
|
|
|
compiler: gcc
|
|
|
|
env: CC_VERSION=6 TYPE=RelWithDebInfo MYSQL_TEST_SUITES=rpl
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources: *add-sources
|
|
|
|
packages: [ *common-packages, galera-3, libzmq3-dev]
|
|
|
|
- os: linux
|
|
|
|
arch: s390x
|
|
|
|
dist: bionic
|
|
|
|
compiler: gcc
|
|
|
|
env: CC_VERSION=7 TYPE=RelWithDebInfo MYSQL_TEST_SUITES=binlog,binlog_encryption,encryption
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources: *add-sources
|
|
|
|
packages: [ *common-packages, galera-3, libzmq3-dev]
|
|
|
|
- os: linux
|
|
|
|
arch: s390x
|
|
|
|
dist: bionic
|
|
|
|
compiler: gcc
|
|
|
|
env: CC_VERSION=7 TYPE=RelWithDebInfo MYSQL_TEST_SUITES=rocksdb,versioning
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources: *add-sources
|
|
|
|
packages: [ *common-packages, galera-3, libzmq3-dev]
|
|
|
|
- os: linux
|
|
|
|
arch: s390x
|
|
|
|
dist: bionic
|
|
|
|
compiler: gcc
|
|
|
|
env: CC_VERSION=7 TYPE=RelWithDebInfo MYSQL_TEST_SUITES=csv,federated,funcs_1,funcs_2,gcol,handler,heap,json,maria,perfschema,plugins,multi_source,roles
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources: *add-sources
|
|
|
|
packages: [ *common-packages, galera-3, libzmq3-dev]
|
|
|
|
- os: linux
|
|
|
|
arch: s390x
|
|
|
|
dist: bionic
|
|
|
|
compiler: gcc
|
|
|
|
env: CC_VERSION=8 TYPE=RelWithDebInfo MYSQL_TEST_SUITES=main
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources: *add-sources
|
|
|
|
packages: [ *common-packages, galera-3, libzmq3-dev]
|
|
|
|
- os: linux
|
|
|
|
arch: s390x
|
|
|
|
dist: bionic
|
|
|
|
compiler: clang
|
|
|
|
env: CC_VERSION=6 TYPE=RelWithDebInfo MYSQL_TEST_SUITES=archive,optimizer_unfixed_bugs,parts,sys_vars,unit,vcol,innodb,innodb_gis,innodb_zip,innodb_fts
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources: *add-sources
|
|
|
|
packages: [ *common-packages, galera-3, libzmq3-dev]
|
|
|
|
- os: linux
|
|
|
|
arch: s390x
|
|
|
|
dist: bionic
|
|
|
|
compiler: clang
|
|
|
|
env: CC_VERSION=7 TYPE=RelWithDebInfo MYSQL_TEST_SUITES=binlog,binlog_encryption,encryption
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources: *add-sources
|
|
|
|
packages: [ *common-packages, galera-3, libzmq3-dev]
|
|
|
|
- os: linux
|
|
|
|
arch: s390x
|
|
|
|
dist: bionic
|
|
|
|
compiler: clang
|
|
|
|
env: CC_VERSION=7 TYPE=RelWithDebInfo MYSQL_TEST_SUITES=rocksdb,versioning
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources: *add-sources
|
|
|
|
packages: [ *common-packages, galera-3, libzmq3-dev]
|
|
|
|
- os: linux
|
|
|
|
arch: s390x
|
|
|
|
dist: bionic
|
|
|
|
compiler: clang
|
|
|
|
env: CC_VERSION=7 TYPE=RelWithDebInfo MYSQL_TEST_SUITES=csv,federated,funcs_1,funcs_2,gcol,handler,heap,json,maria,perfschema,plugins,multi_source,roles
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources: *add-sources
|
|
|
|
packages: [ *common-packages, galera-3, libzmq3-dev]
|
2018-06-29 10:17:28 +02:00
|
|
|
# Until OSX becomes a bit more stable: MDEV-12435 MDEV-16213
|
2017-06-08 06:01:19 +02:00
|
|
|
allow_failures:
|
|
|
|
- os: osx
|
|
|
|
compiler: clang
|
2018-11-23 00:41:38 +01:00
|
|
|
env: CC_VERSION=6 TYPE=RelWithDebInfo MYSQL_TEST_SUITES=rpl
|
2017-06-08 06:01:19 +02:00
|
|
|
- os: osx
|
|
|
|
compiler: clang
|
2018-11-23 00:41:38 +01:00
|
|
|
env: CC_VERSION=6 TYPE=RelWithDebInfo MYSQL_TEST_SUITES=main
|
2017-06-08 06:01:19 +02:00
|
|
|
- os: osx
|
|
|
|
compiler: clang
|
2018-11-23 00:41:38 +01:00
|
|
|
env: CC_VERSION=6 TYPE=RelWithDebInfo MYSQL_TEST_SUITES=archive,optimizer_unfixed_bugs,parts,sys_vars,unit,vcol,innodb,innodb_gis,innodb_zip,innodb_fts
|
2017-06-08 06:01:19 +02:00
|
|
|
- os: osx
|
|
|
|
compiler: clang
|
2018-11-23 00:41:38 +01:00
|
|
|
env: CC_VERSION=7 TYPE=RelWithDebInfo MYSQL_TEST_SUITES=binlog,binlog_encryption,encryption
|
MDEV-16213: Improvements and adjustments to Travis config
Several improvements have been made so that builds run
faster and with fewer canceled jobs:
* Set ccache max size to 1GB. Was 512MB for Linux
(too low for MariaDB) and 5GB on macOS with defaults;
* Don't install libasan in Travis if not necessary.
Sicne ASAN is disabled for the time being, save
time/resources for other steps;
* Decrease number of parallel processes. To prevent
resource exhaustion leading to poor performance. According
to Travis docs, a max of 4 concurrent processses should be
run per job:
https://docs.travis-ci.com/user/common-build-problems/#My-build-script-is-killed-without-any-error
* Reconsider tests exec order and split huge main and rocksdb
test suites into their own job, decreasing the chance of going
over the Travis job execution limit and getting killed;
* Increase Travis testcase-timeout to 4 minutes. Occasionally
on Ubuntu target and frequently on macOS, many tests in main,
rpl, binlog suites take longer than 2 minutes, resulting in
many jobs failing, when in reality the failing tests didn't
get a chance to complete. From my testing, along with the other
speedups, i.e. increasing ccache size, a timeout of 4 minutes
should be Ok. Revert to 3 minutes of necessary.
* Build with GCC and Clang version 5,6 only.
* Rename GCC_VERSION to CC_VERSION for clarity. We are using
two compilers after all, GCC and Clang.
* Stop using somewhat obsolete Clang4 in Travis. Also, was the
reason for the failing test suites in MDEV-15430.
2018-05-29 09:26:01 +02:00
|
|
|
- os: osx
|
|
|
|
compiler: clang
|
2019-01-14 08:40:12 +01:00
|
|
|
env: CC_VERSION=7 TYPE=RelWithDebInfo MYSQL_TEST_SUITES=rocksdb,versioning
|
MDEV-16213: Improvements and adjustments to Travis config
Several improvements have been made so that builds run
faster and with fewer canceled jobs:
* Set ccache max size to 1GB. Was 512MB for Linux
(too low for MariaDB) and 5GB on macOS with defaults;
* Don't install libasan in Travis if not necessary.
Sicne ASAN is disabled for the time being, save
time/resources for other steps;
* Decrease number of parallel processes. To prevent
resource exhaustion leading to poor performance. According
to Travis docs, a max of 4 concurrent processses should be
run per job:
https://docs.travis-ci.com/user/common-build-problems/#My-build-script-is-killed-without-any-error
* Reconsider tests exec order and split huge main and rocksdb
test suites into their own job, decreasing the chance of going
over the Travis job execution limit and getting killed;
* Increase Travis testcase-timeout to 4 minutes. Occasionally
on Ubuntu target and frequently on macOS, many tests in main,
rpl, binlog suites take longer than 2 minutes, resulting in
many jobs failing, when in reality the failing tests didn't
get a chance to complete. From my testing, along with the other
speedups, i.e. increasing ccache size, a timeout of 4 minutes
should be Ok. Revert to 3 minutes of necessary.
* Build with GCC and Clang version 5,6 only.
* Rename GCC_VERSION to CC_VERSION for clarity. We are using
two compilers after all, GCC and Clang.
* Stop using somewhat obsolete Clang4 in Travis. Also, was the
reason for the failing test suites in MDEV-15430.
2018-05-29 09:26:01 +02:00
|
|
|
- os: osx
|
|
|
|
compiler: clang
|
2018-11-23 00:41:38 +01:00
|
|
|
env: CC_VERSION=7 TYPE=RelWithDebInfo MYSQL_TEST_SUITES=csv,federated,funcs_1,funcs_2,gcol,handler,heap,json,maria,perfschema,plugins,multi_source,roles
|
2017-04-02 12:20:32 +02:00
|
|
|
|
2016-12-12 06:42:25 +01:00
|
|
|
|
2017-04-10 11:11:01 +02:00
|
|
|
before_install:
|
|
|
|
- if [[ "${TRAVIS_OS_NAME}" == 'osx' ]]; then
|
|
|
|
brew update;
|
2018-05-23 06:58:13 +02:00
|
|
|
brew install gnutls lz4 lzo xz snappy ccache jemalloc curl ossp-uuid pcre zstd;
|
2017-04-10 11:11:01 +02:00
|
|
|
brew link ccache;
|
2018-12-26 17:55:54 +01:00
|
|
|
export PATH="/usr/local/opt/ccache/libexec:$PATH";
|
2017-04-10 11:11:01 +02:00
|
|
|
fi
|
|
|
|
|
2018-06-29 10:17:28 +02:00
|
|
|
before_script:
|
|
|
|
- df -h
|
2017-04-10 11:11:01 +02:00
|
|
|
- ccache --version
|
MDEV-16213: Improvements and adjustments to Travis config
Several improvements have been made so that builds run
faster and with fewer canceled jobs:
* Set ccache max size to 1GB. Was 512MB for Linux
(too low for MariaDB) and 5GB on macOS with defaults;
* Don't install libasan in Travis if not necessary.
Sicne ASAN is disabled for the time being, save
time/resources for other steps;
* Decrease number of parallel processes. To prevent
resource exhaustion leading to poor performance. According
to Travis docs, a max of 4 concurrent processses should be
run per job:
https://docs.travis-ci.com/user/common-build-problems/#My-build-script-is-killed-without-any-error
* Reconsider tests exec order and split huge main and rocksdb
test suites into their own job, decreasing the chance of going
over the Travis job execution limit and getting killed;
* Increase Travis testcase-timeout to 4 minutes. Occasionally
on Ubuntu target and frequently on macOS, many tests in main,
rpl, binlog suites take longer than 2 minutes, resulting in
many jobs failing, when in reality the failing tests didn't
get a chance to complete. From my testing, along with the other
speedups, i.e. increasing ccache size, a timeout of 4 minutes
should be Ok. Revert to 3 minutes of necessary.
* Build with GCC and Clang version 5,6 only.
* Rename GCC_VERSION to CC_VERSION for clarity. We are using
two compilers after all, GCC and Clang.
* Stop using somewhat obsolete Clang4 in Travis. Also, was the
reason for the failing test suites in MDEV-15430.
2018-05-29 09:26:01 +02:00
|
|
|
- ccache --show-stats
|
2018-12-25 13:01:13 +01:00
|
|
|
- ccache --max-size=5G
|
2018-06-29 10:17:28 +02:00
|
|
|
|
|
|
|
script:
|
MDEV-16213: Improvements and adjustments to Travis config
Several improvements have been made so that builds run
faster and with fewer canceled jobs:
* Set ccache max size to 1GB. Was 512MB for Linux
(too low for MariaDB) and 5GB on macOS with defaults;
* Don't install libasan in Travis if not necessary.
Sicne ASAN is disabled for the time being, save
time/resources for other steps;
* Decrease number of parallel processes. To prevent
resource exhaustion leading to poor performance. According
to Travis docs, a max of 4 concurrent processses should be
run per job:
https://docs.travis-ci.com/user/common-build-problems/#My-build-script-is-killed-without-any-error
* Reconsider tests exec order and split huge main and rocksdb
test suites into their own job, decreasing the chance of going
over the Travis job execution limit and getting killed;
* Increase Travis testcase-timeout to 4 minutes. Occasionally
on Ubuntu target and frequently on macOS, many tests in main,
rpl, binlog suites take longer than 2 minutes, resulting in
many jobs failing, when in reality the failing tests didn't
get a chance to complete. From my testing, along with the other
speedups, i.e. increasing ccache size, a timeout of 4 minutes
should be Ok. Revert to 3 minutes of necessary.
* Build with GCC and Clang version 5,6 only.
* Rename GCC_VERSION to CC_VERSION for clarity. We are using
two compilers after all, GCC and Clang.
* Stop using somewhat obsolete Clang4 in Travis. Also, was the
reason for the failing test suites in MDEV-15430.
2018-05-29 09:26:01 +02:00
|
|
|
# following modules are disabled after sourcing .travis.compiler.sh:
|
|
|
|
# clang disabled: mroonga just generates too many warnings with clang and travis stops the job
|
|
|
|
# cland disabled: tokudb has fatal warnings
|
|
|
|
# gcc/rpl: tokudb and mroonga
|
2017-03-17 02:50:21 +01:00
|
|
|
- source .travis.compiler.sh
|
2017-04-10 11:11:01 +02:00
|
|
|
- cmake .
|
|
|
|
-DCMAKE_BUILD_TYPE=${TYPE}
|
|
|
|
${CMAKE_OPT}
|
2018-06-29 10:17:28 +02:00
|
|
|
-DWITH_SSL=system -DWITH_ZLIB=system
|
MDEV-16213: Improvements and adjustments to Travis config
Several improvements have been made so that builds run
faster and with fewer canceled jobs:
* Set ccache max size to 1GB. Was 512MB for Linux
(too low for MariaDB) and 5GB on macOS with defaults;
* Don't install libasan in Travis if not necessary.
Sicne ASAN is disabled for the time being, save
time/resources for other steps;
* Decrease number of parallel processes. To prevent
resource exhaustion leading to poor performance. According
to Travis docs, a max of 4 concurrent processses should be
run per job:
https://docs.travis-ci.com/user/common-build-problems/#My-build-script-is-killed-without-any-error
* Reconsider tests exec order and split huge main and rocksdb
test suites into their own job, decreasing the chance of going
over the Travis job execution limit and getting killed;
* Increase Travis testcase-timeout to 4 minutes. Occasionally
on Ubuntu target and frequently on macOS, many tests in main,
rpl, binlog suites take longer than 2 minutes, resulting in
many jobs failing, when in reality the failing tests didn't
get a chance to complete. From my testing, along with the other
speedups, i.e. increasing ccache size, a timeout of 4 minutes
should be Ok. Revert to 3 minutes of necessary.
* Build with GCC and Clang version 5,6 only.
* Rename GCC_VERSION to CC_VERSION for clarity. We are using
two compilers after all, GCC and Clang.
* Stop using somewhat obsolete Clang4 in Travis. Also, was the
reason for the failing test suites in MDEV-15430.
2018-05-29 09:26:01 +02:00
|
|
|
- make -j 4
|
2017-04-10 11:11:01 +02:00
|
|
|
- cd mysql-test
|
2018-06-29 10:17:28 +02:00
|
|
|
- travis_wait 30 ./mtr --force --max-test-fail=20 --parallel=4 --testcase-timeout=${TEST_CASE_TIMEOUT}
|
2017-04-10 11:11:01 +02:00
|
|
|
--suite=${MYSQL_TEST_SUITES}
|
|
|
|
--skip-test-list=unstable-tests
|
|
|
|
--skip-test=binlog.binlog_unsafe
|
2018-12-25 13:01:13 +01:00
|
|
|
|
|
|
|
after_script:
|
2017-03-17 02:50:21 +01:00
|
|
|
- ccache --show-stats
|
2018-06-29 10:17:28 +02:00
|
|
|
- df -h
|
2016-08-18 10:47:20 +02:00
|
|
|
|
|
|
|
notifications:
|
|
|
|
irc:
|
|
|
|
channels:
|
|
|
|
- "chat.freenode.net#maria"
|
|
|
|
on_success: never # [always|never|change]
|
|
|
|
on_failure: never
|
|
|
|
template:
|
|
|
|
- "%{repository}/%{branch} (%{commit} - %{author}): %{build_url}: %{message}"
|