2015-07-23 09:59:42 +03:00
|
|
|
# Use container-based infrastructure (see: http://docs.travis-ci.com/user/workers/container-based-infrastructure/).
|
|
|
|
sudo: false
|
2014-10-01 05:59:51 +04:00
|
|
|
language: go
|
2015-01-20 23:07:07 +03:00
|
|
|
go:
|
|
|
|
- 1.4
|
2015-07-23 09:59:42 +03:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
# NOTE: When you add a dependency, don't forget to add comment why it's necessary.
|
|
|
|
- automake
|
|
|
|
- libtool
|
|
|
|
- memcached
|
|
|
|
- python-dev
|
|
|
|
- python-mysqldb
|
|
|
|
- python-pip
|
|
|
|
- python-virtualenv
|
|
|
|
- libssl-dev
|
|
|
|
- g++
|
|
|
|
- git
|
|
|
|
- pkg-config
|
|
|
|
# installs libaio1 which is required by MariaDB 10.0 server package
|
|
|
|
- libaio-dev
|
|
|
|
# required by travis script below to measure CPU and memory usage
|
|
|
|
- time
|
|
|
|
# TODO(mberlin): Remove this when python-mysql is installable via the "apt" addon above.
|
|
|
|
- python-dev
|
|
|
|
# Optional dependency. Without a running syslog daemon, Vitess will keep complaining that it could not log events and spam the logs.
|
|
|
|
- rsyslog
|
2014-10-01 05:59:51 +04:00
|
|
|
env:
|
|
|
|
global:
|
|
|
|
- MYSQL_FLAVOR=MariaDB
|
2015-07-23 10:07:47 +03:00
|
|
|
- MYSQL_ROOT=$HOME/mysql
|
|
|
|
- VT_MYSQL_ROOT=$MYSQL_ROOT/usr
|
2015-07-23 10:09:57 +03:00
|
|
|
# Enable parallel compilation e.g. for gRPC.
|
|
|
|
# (The Travis CI worker is allowed to use up to 2 cores, but as of 07/2015 4 parallel compilations is actually faster.)
|
|
|
|
- MAKEFLAGS=-j4
|
2015-07-23 10:09:26 +03:00
|
|
|
# TODO(mberlin): Remove this when python-mysql is installable via the "apt" addon above.
|
|
|
|
- PYTHONPATH=$HOME/.local/lib/python2.7/site-packages
|
2014-10-01 05:59:51 +04:00
|
|
|
matrix:
|
2015-01-30 00:05:28 +03:00
|
|
|
- MAKE_TARGET=java_vtgate_client_test
|
|
|
|
- MAKE_TARGET=unit_test_goveralls
|
2014-10-01 05:59:51 +04:00
|
|
|
- MAKE_TARGET=small_integration_test
|
|
|
|
- MAKE_TARGET=medium_integration_test
|
|
|
|
- MAKE_TARGET=large_integration_test
|
2015-01-30 00:05:28 +03:00
|
|
|
- MAKE_TARGET=queryservice_test
|
|
|
|
- MAKE_TARGET=unit_test
|
2014-10-01 05:59:51 +04:00
|
|
|
before_install:
|
2015-07-23 10:07:47 +03:00
|
|
|
- bash travis/download_mariadb.sh
|
2015-07-23 10:09:26 +03:00
|
|
|
# TODO(mberlin): Remove this when python-mysql is installable via the "apt" addon above.
|
|
|
|
- PATH=$PATH:$MYSQL_ROOT/usr/bin LDFLAGS="-L$MYSQL_ROOT/usr/lib" pip install --user mysql-python
|
2014-10-01 05:59:51 +04:00
|
|
|
install:
|
2015-07-23 09:59:42 +03:00
|
|
|
- bash -v bootstrap.sh
|
2014-10-01 05:59:51 +04:00
|
|
|
script:
|
|
|
|
- source dev.env
|
2015-06-02 00:07:11 +03:00
|
|
|
- |
|
2015-06-06 03:12:09 +03:00
|
|
|
travis_retry /usr/bin/time -f "CPU: %P Memory: %M kB" make build $MAKE_TARGET
|