From 0217bf7ca47d7bae108843876af0cb8adff6df74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl=20van=20Eeden?= Date: Tue, 17 Dec 2024 20:22:02 +0100 Subject: [PATCH] CI: Appveyor config for MySQL 8.0 --- CI/mysql_config.bat | 17 +++++++++++++++++ appveyor.yml | 25 +++++++++++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 CI/mysql_config.bat create mode 100644 appveyor.yml 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..963b6616 --- /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