Skip to content
Permalink
Browse files

Install MySQL 5.7 on Travis CI [skip appveyor] (#13835)

  • Loading branch information...
sergeyklay authored and niden committed Feb 17, 2019
1 parent c310058 commit c4cd29d4b014d2f42d155e584f0c122999e477ca
Showing with 24 additions and 4 deletions.
  1. +23 −0 .ci/install-mysql-5.7.sh
  2. +1 −4 .travis.yml
@@ -0,0 +1,23 @@
#!/usr/bin/env bash
#
# This file is part of the Phalcon Framework.
#
# (c) Phalcon Team <team@phalconphp.com>
#
# For the full copyright and license information, please view the
# LICENSE.txt file that was distributed with this source code.

# Ensure that this is being run inside a CI container
if [ "${CI}" != "true" ];
then
>&2 echo "This script is designed to run inside a CI container only."
>&2 echo "Aborting."
exit 1
fi

echo mysql-apt-config mysql-apt-config/select-server select mysql-5.7 | sudo debconf-set-selections
wget https://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 --allow-unauthenticated -o Dpkg::Options::=--force-confnew mysql-server
sudo mysql_upgrade
@@ -18,14 +18,10 @@ branches:

addons:
apt:
sources:
- mysql-5.7-trusty
packages:
- beanstalkd
- gdb
- lcov
- mysql-server
- mysql-client
postgresql: "9.4"

matrix:
@@ -86,6 +82,7 @@ before_install:
export PHP_PEAR_PHP_BIN=$(phpenv which php)
install:
- .ci/install-mysql-5.7.sh
- tests/_ci/setup-dbs.sh
- tests/_ci/pear-setup.sh
- .ci/install-prereqs.sh

0 comments on commit c4cd29d

Please sign in to comment.
You can’t perform that action at this time.