Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormattab <matthieu.aubry@gmail.com>2014-05-18 06:34:02 +0400
committermattab <matthieu.aubry@gmail.com>2014-05-18 06:34:02 +0400
commit20bd2e1c24e5d673dce3feb256204ad48c29f160 (patch)
treedbfb23604a546014136457559bb6d401a4fc3fe2 /.travis.yml
parent6d7272b0d0e5f5333ea1799d059ba03959434e3d (diff)
Run Ci builds on Mysql 5.6 to test and prevent (some critical) bugs caused by the now-enabled-by-default STRICT_TRANS_TABLES setting.
To prevent such issues let's run all tests against it. Refs https://github.com/piwik/piwik/pull/279 Reused Mysql 5.6 gist provided in https://github.com/travis-ci/travis-ci/issues/1986
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml15
1 files changed, 15 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
index da7939b9a3..51c34d3ba3 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -78,6 +78,21 @@ matrix:
script: ./travis.sh
before_script:
+ # Setup Mysql 5.6 (source: https://github.com/travis-ci/travis-ci/issues/1986)
+ - "sudo apt-get remove mysql-common mysql-server-5.5 mysql-server-core-5.5 mysql-client-5.5 mysql-client-core-5.5"
+ - "sudo apt-get autoremove"
+ - "sudo apt-get install libaio1"
+ - "wget -O mysql-5.6.14.deb http://dev.mysql.com/get/Downloads/MySQL-5.6/mysql-5.6.14-debian6.0-x86_64.deb/from/http://cdn.mysql.com/"
+ - "sudo dpkg -i mysql-5.6.14.deb"
+ - "sudo cp /opt/mysql/server-5.6/support-files/mysql.server /etc/init.d/mysql.server"
+ - "sudo ln -s /opt/mysql/server-5.6/bin/* /usr/bin/"
+ - "sudo sed -i'' 's/table_cache/table_open_cache/' /etc/mysql/my.cnf"
+ - "sudo sed -i'' 's/log_slow_queries/slow_query_log/' /etc/mysql/my.cnf"
+ - "sudo sed -i'' 's/basedir[^=]\\+=.*$/basedir = \\/opt\\/mysql\\/server-5.6/' /etc/mysql/my.cnf"
+ - "sudo /etc/init.d/mysql.server start"
+ - mysql --version
+ - mysql -e "SELECT VERSION();"
+ # Setup Piwik stack
- ./tests/travis/initiate_ui_tests.sh
- composer self-update
- composer install