Skip to content

Commit

Permalink
test mysql 5.7
Browse files Browse the repository at this point in the history
  • Loading branch information
bendavies committed Aug 18, 2016
1 parent 33ba066 commit 7e3b433
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
8 changes: 8 additions & 0 deletions tests/travis/install-mysql-5.7.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 7e3b433

Please sign in to comment.