From e753fe1b43403282cab85006515c51f96eb21ab2 Mon Sep 17 00:00:00 2001 From: Ben Davies Date: Thu, 18 Aug 2016 14:40:53 +0100 Subject: [PATCH] test mysql 5.7 --- .travis.yml | 4 ++++ tests/travis/install-mysql-5.7.sh | 8 ++++++++ 2 files changed, 12 insertions(+) create mode 100755 tests/travis/install-mysql-5.7.sh diff --git a/.travis.yml b/.travis.yml index 0434dde2..a8842e81 100644 --- a/.travis.yml +++ b/.travis.yml @@ -30,6 +30,7 @@ before_install: install: composer update $COMPOSER_FLAGS --prefer-dist before_script: + - if [[ $DB == 'mysql' && $MYSQL_VERSION == '5.7' ]]; then ./tests/travis/install-mysql-5.7.sh; fi - if [[ $DB == 'mysql' ]]; then mysql --version; fi script: ./vendor/bin/phpunit -c tests/travis/$DB.travis.xml @@ -49,6 +50,9 @@ matrix: - mysql-server-5.6 - mysql-client-core-5.6 - mysql-client-5.6 + - php: 7.0 + env: DB=mysql MYSQL_VERSION=5.7 + sudo: required allow_failures: - php: nightly - php: hhvm diff --git a/tests/travis/install-mysql-5.7.sh b/tests/travis/install-mysql-5.7.sh new file mode 100755 index 00000000..62d1187d --- /dev/null +++ b/tests/travis/install-mysql-5.7.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +echo mysql-apt-config mysql-apt-config/select-server select mysql-5.7 | sudo debconf-set-selections +wget http://dev.mysql.com/get/mysql-apt-config_0.7.3-1_all.deb +sudo dpkg --install mysql-apt-config_0.7.3-1_all.deb +sudo apt-get update -q +sudo apt-get install -q -y -o Dpkg::Options::=--force-confnew mysql-server +sudo mysql_upgrade