Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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