diff --git a/CI/mysql_config.bat b/CI/mysql_config.bat new file mode 100644 index 00000000..2fcb6d4f --- /dev/null +++ b/CI/mysql_config.bat @@ -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% +) diff --git a/appveyor.yml b/appveyor.yml new file mode 100644 index 00000000..2865b922 --- /dev/null +++ b/appveyor.yml @@ -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