Skip to content

Commit

Permalink
CI: Appveyor config for MySQL 8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
dveeden committed Dec 17, 2024
1 parent 49cbce2 commit 29fd5dc
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
17 changes: 17 additions & 0 deletions CI/mysql_config.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
@echo off
rem mysql_config replacement script
rem based on https://github.com/StrawberryPerl/build-extlibs/blob/master/mysql.special/mysql_config.bat

set ROOT=c:\Program Files\MySQL\MySQL Server 8.0

set XCFLAGS="-I%ROOT%\include"
set XLIBS="-L%ROOT%\lib" -lmysql
set XVERSION=8.0.35
set XPREFIX=%ROOT%..\

for %%p in (%*) do (
if x%%p == x--cflags echo %XCFLAGS%
if x%%p == x--libs echo %XLIBS%
if x%%p == x--version echo %XVERSION%
if x%%p == x--prefix echo %XPREFIX%
)
25 changes: 25 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
version: 1.0.{build}

image: Visual Studio 2022

services:
- mysql

init:
- ps: Start-Service MySQL80

install:
- path C:\Program Files\MySQL\MySQL Server 8.0\bin;C:\strawberry\perl\bin;C:\strawberry\perl\site\bin;C:\strawberry\c\bin;%PATH%
- mkdir %APPVEYOR_BUILD_FOLDER%\tmp
- set TMPDIR=%APPVEYOR_BUILD_FOLDER%\tmp
- mysql.exe --version
- perl -V
- cpan App::cpanminus
- cpanm -q --showdeps --with-develop --with-suggests . | findstr /v "^perl\>" | cpanm -n
- cpanm -q -n Devel::CheckLib

build_script:
- perl Makefile.PL --testuser=root --testpassword=Password12! --mysql_config=CI/mysql_config.bat

test_script:
- gmake test

0 comments on commit 29fd5dc

Please sign in to comment.