Skip to content

Commit

Permalink
Install MySQL 5.7 on Travis CI [skip appveyor] (#13835)
Browse files Browse the repository at this point in the history
  • Loading branch information
sergeyklay authored and niden committed Feb 17, 2019
1 parent c310058 commit c4cd29d
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 4 deletions.
23 changes: 23 additions & 0 deletions .ci/install-mysql-5.7.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/usr/bin/env bash
#
# This file is part of the Phalcon Framework.
#
# (c) Phalcon Team <[email protected]>
#
# 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
5 changes: 1 addition & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,10 @@ branches:

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

matrix:
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit c4cd29d

Please sign in to comment.