Skip to content

Commit 0217bf7

Browse files
committed
CI: Appveyor config for MySQL 8.0
1 parent 49cbce2 commit 0217bf7

File tree

2 files changed

+42
-0
lines changed

2 files changed

+42
-0
lines changed

CI/mysql_config.bat

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
@echo off
2+
rem mysql_config replacement script
3+
rem based on https://github.com/StrawberryPerl/build-extlibs/blob/master/mysql.special/mysql_config.bat
4+
5+
set ROOT=c:\Program Files\MySQL\MySQL Server 8.0
6+
7+
set XCFLAGS="-I%ROOT%\include"
8+
set XLIBS="-L%ROOT%\lib" -lmysql
9+
set XVERSION=8.0.35
10+
set XPREFIX=%ROOT%..\
11+
12+
for %%p in (%*) do (
13+
if x%%p == x--cflags echo %XCFLAGS%
14+
if x%%p == x--libs echo %XLIBS%
15+
if x%%p == x--version echo %XVERSION%
16+
if x%%p == x--prefix echo %XPREFIX%
17+
)

appveyor.yml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
version: 1.0.{build}
2+
3+
image: Visual Studio 2022
4+
5+
services:
6+
- mysql
7+
8+
init:
9+
- ps: Start-Service MySQL80
10+
11+
install:
12+
- path C:\Program Files\MySQL\MySQL Server 8.0\bin;C:\strawberry\perl\bin;C:\strawberry\perl\site\bin;C:\strawberry\c\bin;%PATH%
13+
- mkdir %APPVEYOR_BUILD_FOLDER%\tmp
14+
- set TMPDIR=%APPVEYOR_BUILD_FOLDER%\tmp
15+
- mysql.exe --version
16+
- perl -V
17+
- cpan App::cpanminus
18+
- cpanm -q --showdeps --with-develop --with-suggests . | findstr /v "^perl\>" | cpanm -n
19+
- cpanm -q -n Devel::CheckLib
20+
21+
build_script:
22+
- perl Makefile.PL --testuser=root --testpassword=Password12! --mysql_config=CI\mysql_config.bat
23+
24+
test_script:
25+
- gmake test

0 commit comments

Comments
 (0)