-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
40 lines (31 loc) · 1.21 KB
/
appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
version: build-{build}
clone_depth: 50
environment:
PERL_CPANM_OPT: "--notest --force --skip-satisfied"
platform:
- x86
- x64
install:
- set TMPDIR=%APPVEYOR_BUILD_FOLDER%\tmp
- mkdir %TMPDIR%
- choco install --allowemptychecksum strawberryperl
- path C:\strawberry\perl\bin;C:\strawberry\perl\site\bin;C:\strawberry\c\bin;%PATH%
- "cpan App::cpanminus"
- "cpanm Dist::Zilla"
- "dzil authordeps | cpanm"
- set ALT_ALIEN_ZMQ_BRANCH=master
- cinst curl -y
- 'cd %APPVEYOR_BUILD_FOLDER% & curl -fsS -o install-zmq-libzmq.pl https://raw.githubusercontent.com/zmughal-CPAN/p5-Alt-Alien-ZMQ-Alien-ZMQ-latest/%ALT_ALIEN_ZMQ_BRANCH%/maint/install-zmq-libzmq.pl & perl install-zmq-libzmq.pl --notest Alt::Alien::ZMQ::Alien::ZMQ::latest ZMQ::LibZMQ3 ZMQ::LibZMQ4'
- "dzil listdeps --author | cpanm"
before_build:
- "dzil build --in build-dir"
build_script:
- "dzil listdeps | cpanm"
- "cd build-dir"
- "cpanm --installdeps ."
- "cd .."
test_script:
- perl -MAlien::ZMQ::latest -E "say Alien::ZMQ::latest->bin_dir" > %TMPDIR%\alien-zmq-latest-bin.txt
- set /P ALIEN_ZMQ_LATEST_PATH=<%TMPDIR%\alien-zmq-latest-bin.txt
- path %ALIEN_ZMQ_LATEST_PATH%;%PATH%
- "dzil test --release --keep-build-dir"