Skip to content

Commit

Permalink
install mysql 5.7 on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Songmu committed Apr 6, 2024
1 parent 87b944b commit f8ea0d3
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
2 changes: 2 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
Revision history for Perl extension Test::mysqld.

{{$NEXT}}

1.0030 2024-04-06T14:22:15Z
- Support DBD::MariaDB

1.0020 2024-04-05T16:35:54Z
Expand Down
4 changes: 2 additions & 2 deletions META.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
"web" : "https://github.com/kazuho/p5-test-mysqld"
}
},
"version" : "1.0020",
"version" : "1.0030",
"x_authority" : "cpan:KAZUHO",
"x_contributors" : [
"David Steinbrunner <dsteinbrunner@pobox.com>",
Expand All @@ -85,11 +85,11 @@
"John Napiorkowski <jjn1056@yahoo.com>",
"Kazuho Oku <kazuho@li1.kazuhooku.com>",
"Kazuho Oku <kazuhooku@gmail.com>",
"Masayuki Matsuki <y.songmu@gmail.com>",
"Matthew Horsfall <wolfsage@gmail.com>",
"NAKAGAWA Masaki <masaki.nakagawa@gmail.com>",
"Naoto Nakamura <naoto.nakamura@showroom.co.jp>",
"Petr Písař <ppisar@redhat.com>",
"Songmu <y.songmu@gmail.com>",
"Yoshikazu Sawa <883514+yoshikazusawa@users.noreply.github.com>",
"Yusuke Watase <ywatase@gmail.com>",
"Zhenjun Wang <zjwang0414@gmail.com>",
Expand Down
7 changes: 4 additions & 3 deletions author/ci_install_mysql.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,8 @@ if [[ $DATABASE_ADAPTER =~ (mariadb|mysql-(5\.7|8\.0)) ]]; then
sudo apt-get update -q
sudo apt-get install -q --yes --force-yes -f --option DPkg::Options::=--force-confnew mariadb-server libmariadb-dev
sudo mariadb-upgrade
elif [[ $DATABASE_ADAPTER =~ mysql-(5\.7|8\.0) ]]; then
elif [[ $DATABASE_ADAPTER =~ mysql-5\.7 ]]; then
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 467B942D3A79BD29
# XXX: The switch to mysql 5.7 is not currently working....
cat <<EOC | sudo debconf-set-selections
mysql-apt-config mysql-apt-config/select-server select $DATABASE_ADAPTER
mysql-apt-config mysql-apt-config/repo-codename select bionic
Expand All @@ -22,6 +21,8 @@ EOC
wget https://dev.mysql.com/get/mysql-apt-config_0.8.29-1_all.deb
sudo dpkg --install mysql-apt-config_0.8.29-1_all.deb
sudo apt-get update -q
sudo apt-get install -q --yes --option Dpkg::Options::=--force-confnew mysql-server libmysqlclient-dev
sudo apt-cache policy mysql-server
sudo apt-get remove --yes mysql-client-8.0 mysql-client-core-8.0
sudo apt-get install -q --yes -f --option DPkg::Options::=--force-confnew mysql-client=5.7* mysql-community-server=5.7* mysql-server=5.7*
fi
fi
2 changes: 1 addition & 1 deletion lib/Test/mysqld.pm
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ if ($@) {
}
}

our $VERSION = '1.0020';
our $VERSION = '1.0030';

our $errstr;
our @SEARCH_PATHS = qw(/usr/local/mysql);
Expand Down

0 comments on commit f8ea0d3

Please sign in to comment.