Skip to content

Commit

Permalink
Fix pod and ensure Test::Pod is installed
Browse files Browse the repository at this point in the history
  • Loading branch information
dveeden committed May 3, 2024
1 parent deba734 commit 2abd1a9
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 9 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,20 @@ jobs:
- 3306:3306
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: "Setup generic dependencies"
run: |
sudo apt update
sudo apt install -y gcc make libdbi-perl libdevel-checklib-perl libtest-deep-perl wget lsb-release gnupg
sudo apt install -y \
gcc \
gnupg \
libdbi-perl \
libdevel-checklib-perl \
libtest-deep-perl \
libtest-pod-perl \
lsb-release \
make \
wget \
- if: matrix.client == '8.0'
run: |
sudo debconf-set-selections <<EOF
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/ci_mac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,18 @@ jobs:
test:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: "Install dependencies"
run: |
brew install cpanminus [email protected] [email protected]
cpanm DBI
cpanm Devel::CheckLib
cpanm Test::More
cpanm Test::Deep
cpanm DBI
cpanm Test::More
cpanm Test::Pod
- name: "Run build"
run: |
export PATH="/usr/local/opt/[email protected]/bin:$PATH"
export PATH="/usr/local/opt/[email protected]/bin:/opt/homebrew/opt/[email protected]/bin:/opt/homebrew/opt/[email protected]/bin:$PATH"
perl Makefile.PL --testhost=127.0.0.1 --testuser=root
make
- name: "Start MySQL"
Expand Down
2 changes: 2 additions & 0 deletions lib/DBD/mysql.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1347,6 +1347,8 @@ This returns:
=back
=back
=head1 DATABASE HANDLES
The DBD::mysql driver supports the following attributes of database
Expand Down
7 changes: 4 additions & 3 deletions lib/DBD/mysql/INSTALL.pod
Original file line number Diff line number Diff line change
Expand Up @@ -207,11 +207,12 @@ be on a remote machine.
On Fedora the process is as follows. In this example we install and
start a local server for running the tests against.

dnf -y install make gcc community-mysql-devel community-mysql-libs community-mysql-server
dnf -y install "perl(Test::Deep)" "perl(Test::More)"
dnf -y install make gcc mysql-devel mysql-libs mysql-server mysql
dnf -y install "perl(Test::Deep)" "perl(Test::More)" "perl(Test::Pod)" \
"perl(bigint)" "perl(DBI)" "perl(ExtUtils::MakeMaker)" \
"perl(Devel::CheckLib)"
systemctl start mysqld.service


=head2 Environment Variables

For ease of use, you can set environment variables for
Expand Down

0 comments on commit 2abd1a9

Please sign in to comment.