-
Notifications
You must be signed in to change notification settings - Fork 0
/
.appveyor.yml
85 lines (76 loc) · 3.84 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
environment:
my_notsecret_env:
secure: FW/SmCFLiDFloFpCkThhTIj4v4k5hVfU+lWZ4YWKjE8Cc1jc7+1EqRlB1wIw7rsr
matrix:
- perl: default
AUTOMATED_TESTING: 1
- perl: default
AUTOMATED_TESTING: 1
myBits: --FORCEx86
#- perl: 5.26.2.1
#- perl: 5.24.4.1
#- perl: 5.22.3.1
#- perl: 5.20.3.3
#- perl: 5.18.4.1
##failed##- perl: 5.16.3.1 # choco package points to outdated download URL
#- perl: 5.16.3.20170202
#- perl: 5.14.4.1
##failed##- perl: 5.12.3.0 # choco package points to outdated download URL
##failed##- perl: 5.12.3.1 # choco package points to outdated download URL
#- perl: 5.12.3.20180709 # predates cpanm
#- perl: 5.10.1.5 # predates cpanm
skip_tags: true
cache:
#- C:\strawberry -> appveyor.yml
install:
- IF NOT DEFINED myBits ( set myBits= & echo myBits equals space )
- echo myBits=_%myBits%_
#- cinst %myBits% notepadplusplus
- IF NOT DEFINED perl set perl=default
- echo install Perl v%perl%...
- IF /I %perl%==default (cinst %myBits% strawberryperl) ELSE (cinst %myBits% strawberryperl --version %perl%)
- IF NOT EXIST "chocologs" MKDIR chocologs
- IF EXIST "c:\ProgramData\chocolatey\logs" COPY /Y "c:\ProgramData\chocolatey\logs" "chocologs"
- set PATH=C:\strawberry\perl\bin;C:\strawberry\perl\site\bin;C:\strawberry\c\bin;%PATH%
- perl -le "print qq(installed perl v$])"
- IF NOT EXIST c:\strawberry\perl\bin\cpanm.bat (cpan -i App::cpanminus)
- cpanm App::cpanminus
#- perl -e "if($]<5.012){ system('cpanm', 'ExtUtils::[email protected]' ) }"
#- IF EXIST "C:\Users\appveyor\.cpanm\build.log" TYPE "C:\Users\appveyor\.cpanm\build.log" >> cpanm.build.log
#- IF EXIST "C:\Users\appveyor\.cpanm\build.log" DEL "C:\Users\appveyor\.cpanm\build.log"
#- perl -e "if($]<5.014){ system('cpanm', '--notest', $_) for qw(Encode::compat) }"
#- IF EXIST "C:\Users\appveyor\.cpanm\build.log" TYPE "C:\Users\appveyor\.cpanm\build.log" >> cpanm.build.log
#- IF EXIST "C:\Users\appveyor\.cpanm\build.log" DEL "C:\Users\appveyor\.cpanm\build.log"
#- perl -e "if($]<5.014){ system('cpanm', $_) for qw(Config::Perl::V Math::Int64 Win32::API) }"
#- IF EXIST "C:\Users\appveyor\.cpanm\build.log" TYPE "C:\Users\appveyor\.cpanm\build.log" >> cpanm.build.log
#- IF EXIST "C:\Users\appveyor\.cpanm\build.log" DEL "C:\Users\appveyor\.cpanm\build.log"
- cpanm --installdeps .
#- IF EXIST "C:\Users\appveyor\.cpanm\build.log" TYPE "C:\Users\appveyor\.cpanm\build.log" >> cpanm.build.log
#- IF EXIST "C:\Users\appveyor\.cpanm\build.log" DEL "C:\Users\appveyor\.cpanm\build.log"
# --installdeps doesn't include Devel::Cover, since it's not a PREREQ_PM; but appveyor needs it, so install it manually
# (normally) don't test when installing, because it takes time, and Devel::Cover is a proven module
#- cpanm --force Devel::Cover
#- IF EXIST "C:\Users\appveyor\.cpanm\build.log" COPY /Y "C:\Users\appveyor\.cpanm\build.log" cpanm.build.log
#- cpanm --notest Devel::Cover
build_script:
- echo build using Perl=%perl%...
- perl -le "print qq(build with perl v$])"
- perl Makefile.PL
- FOR /F "tokens=* USEBACKQ" %%F IN (`perl -MConfig -e "print $Config{make}"`) DO ( SET mymake=%%F )
- echo MyMake = %mymake%
- echo NotASecret = %notasecret%
- echo SecondSec = %secondsec%
- echo MyNotSecretEnv = %my_notsecret_env%
after_build:
- IF EXIST "c:\users\appveyor\.cpanm\work\" (MOVE /Y c:\users\appveyor\.cpanm\work .)
test_script:
- echo test Perl=%perl%...
- perl -le "print qq(test with perl v$])"
- perl -V:ptrsize -V:ivsize -V:myuname
# cmd/c before %mymake% to avoid appveyor parse error with %mymake% as first word of command
- cmd/c %mymake% test
on_failure:
- FOR /D %%D in ( c:\users\appveyor\.cpanm\work\* ) DO ( type %%D\*.log )
artifacts:
- path: chocologs
- path: work\**\*.log