Skip to content

Commit b73a902

Browse files
committed
Add appveyor files
1 parent 266a3c1 commit b73a902

File tree

2 files changed

+49
-0
lines changed

2 files changed

+49
-0
lines changed

.appveyor.cmd

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
@echo off
2+
3+
if not defined perl_type set perl_type=system
4+
if "%perl_type%" == "strawberry" (
5+
if not defined perl_version (
6+
cinst -y StrawberryPerl
7+
) else (
8+
cinst -y StrawberryPerl --version %perl_version%
9+
)
10+
set "PATH=C:\Strawberry\perl\bin;C:\Strawberry\perl\site\bin;C:\Strawberry\c\bin;%PATH%"
11+
) else if "%perl_type%" == "system" (
12+
mkdir c:\dmake
13+
cinst -y curl
14+
curl http://www.cpan.org/authors/id/S/SH/SHAY/dmake-4.12.2.2.zip -o c:\dmake\dmake.zip
15+
7z x c:\dmake\dmake.zip -oc:\ >NUL
16+
set "PATH=c:\dmake;C:\MinGW\bin;%PATH%"
17+
) else (
18+
echo.Unknown perl type "%perl_type%"! 1>&2
19+
exit /b 1
20+
)
21+
for /f "usebackq delims=" %%d in (`perl -MConfig -e"print $Config{make}"`) do set make=%%d
22+
set "perl=perl"
23+
set TAR_OPTIONS=--warning=no-unknown-keyword
24+
25+
:eof

.appveyor.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
version: '{build}'
2+
shallow_clone: true
3+
4+
environment:
5+
matrix:
6+
- perl_type: system
7+
- perl_type: strawberry
8+
- perl_type: strawberry
9+
perl_version: 5.12.3.1
10+
- perl_type: strawberry
11+
perl_version: 5.16.3.3
12+
- perl_type: strawberry
13+
perl_version: 5.20.1.1
14+
15+
install:
16+
- 'call .appveyor.cmd perl_setup'
17+
- 'cpan ExtUtils::PL2Bat'
18+
- '%perl% -V'
19+
20+
build: off
21+
22+
test_script:
23+
- 'prove -l t'
24+

0 commit comments

Comments
 (0)