This repository has been archived by the owner on Jun 1, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 17
/
appveyor.yml
209 lines (203 loc) · 7.68 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
version: 5.30.0.{build}
#skip_tags: true
#os: MinGW
os: Visual Studio 2015
#os: Default Azure
#build:
# verbosity: minimal
max_jobs: 4
build:
parallel: true
environment:
matrix:
#- MINGW: 1
# CFG: Debug
# PLATFORM: x86
- MINGW: 1
PLATFORM: x86
- MINGW: 1
PLATFORM: x64
#- MSVC_VERSION: 10
# PLATFORM: x86
- CYGWIN: 1
PLATFORM: x86
- CYGWIN: 1
PLATFORM: x64
- MSVC_VERSION: 10
PLATFORM: x64
#- MSVC_VERSION: 12
# PLATFORM: x86
- MSVC_VERSION: 14
PLATFORM: x86
#- MSVC_VERSION: 14
# CFG: Debug
#- MSVC_VERSION: 12
# CFG: Debug
matrix:
exclude:
- PLATFORM: x64
MSVC_VERSION: 14
- PLATFORM: x64
MSVC_VERSION: 12
allow_failures:
- MINGW: 1
CFG: Debug
PLATFORM: x86
# timeouts, and 32bit should be outclassed anyway
- CYGWIN: 1
PLATFORM: x86
- MSVC_VERSION: 10
PLATFORM: x64
- MSVC_VERSION: 10
PLATFORM: x86
- MSVC_VERSION: 12
PLATFORM: x86
- MSVC_VERSION: 14
PLATFORM: x86
clone_depth: 1
branches:
only:
- master
- /^smoke/
- /^maint-/
- /^cperl-/
- /^win/
init:
- git config --global core.autocrlf input
# Disable popups as they hang the build as there is nobody to click on the OK button...
# Hanging the build is a lot less user friendly than reporting a build failure.
#
# Disable of system hard error popup
# See: https://msdn.microsoft.com/en-us/library/bb513638%28VS.85%29.aspx
- reg add "HKLM\SYSTEM\CurrentControlSet\Control\Windows" /f /v ErrorMode /d 2
# Disable the following popup on program failure:
# | ** <program name> has stopped working ** |
# | Windows can check online for a solution to the problem|
# | - Check online for a solution and close the program |
# | - Close the program |
# See: https://msdn.microsoft.com/en-us/library/bb513638%28VS.85%29.aspx
- reg add "HKLM\Software\Microsoft\Windows\Windows Error Reporting" /f /v DontShowUI /d 1
- ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
- if "%MINGW%"=="1" set PROCESSOR_ARCHITECTURE=%PLATFORM%
- if "%PLATFORM%"=="x64" set PROCESSOR_ARCHITECTURE=AMD64
- if "%PLATFORM%"=="x86" set WIN64=undef
- if "%PLATFORM%"=="x86" set BITS=32
- if "%PLATFORM%"=="x64" set BITS=64
#- if "%MINGW%"=="1" set PATH=%MSYS64%\bin;c:\Windows\system32;c:\Windows;C:\MinGW\msys\1.0\bin;c:\Windows\system32\Wbem;C:\MinGW\bin;C:\Program Files\Git\cmd
- if "%MINGW%"=="1" if "%PLATFORM%"=="x86" cinst --x86 strawberryperl -iy
# mingw64 uses the broken gcc-9 compiler
- if "%MINGW%"=="1" if "%PLATFORM%"=="x64" cinst strawberryperl --version 5.28.2.1 -iy
- if "%MINGW%"=="1" set PATH=c:\Windows\system32;c:\Windows;C:\strawberry\c\bin;C:\strawberry\perl\bin;c:\Windows\system32\Wbem;C:\Program Files\Git\cmd
#- if "%MINGW%"=="1" rename c:\MinGW\lib lib.old
#- if "%MINGW%"=="1" rename c:\MinGW\include include.old
- if "%MINGW%"=="1" rename c:\MinGW MinGW.old
- if "%MINGW%"=="1" set CCHOME=c:\strawberry\c & set MKOPT="CCHOME=c:\strawberry\c"
- set MKOPT=%MKOPT% USE_FFI=define
- if "%CFG%"=="Debug" set
- set CYGR=c:\cygwin
- if "%PLATFORM%"=="x64" set CYGR=c:\cygwin64
- if "%CYGWIN%"=="1" set CYGSETUP=setup-x86
- if "%PLATFORM%"=="x64" set CYGSETUP=setup-x86_64
#- if not "%CYGWIN%"=="1" nuget install libffi
#- cinst -y wget
#- if not "%CYGWIN%"=="1" set PATH=%PATH%;%CYGR%\bin
#- if "%CYGWIN%"=="1" rm -rf 'c:\projects\cperl'
# we cannot set the cygwin path in init, to use the system git with \ pathsep for downloading
build_script:
- if "%CYGWIN%"=="1" set PATH=%CYGR%\bin;c:\Windows\system32;c:\Windows;c:\Windows\system32\Wbem
- if "%CYGWIN%"=="1" wget -q https://cygwin.com/%CYGSETUP%.exe -O %CYGR%\%CYGSETUP%.exe
- if "%CYGWIN%"=="1" chmod +x %CYGR%\%CYGSETUP%.exe
- if "%CYGWIN%"=="1" %CYGR%\%CYGSETUP% -qnNdO -R %CYGR%
-s http://cygwin.mirror.constant.com
-l %CYGR%/var/cache/setup -P libffi-devel,libffi6,libgdbm-devel
- if not "%CYGWIN%"=="1" %CYGR%\bin\wget -q https://github.com/perl11/cperl/releases/download/libffi-win/libffi-3.2.2dev-mingw%BITS%.tar.gz
- if not "%CYGWIN%"=="1" %CYGR%\bin\gzip -d libffi-3.2.2dev-mingw%BITS%.tar.gz
- if not "%CYGWIN%"=="1" %CYGR%\bin\tar -xf libffi-3.2.2dev-mingw%BITS%.tar -C win32/
- if not "%CYGWIN%"=="1" copy win32\bin\libffi*.dll *.*
- if not "%CYGWIN%"=="1" if not "%MINGW%"=="1" copy win32\lib\libffi.a *.*
- if "%MINGW%"=="1" copy win32\lib\libffi.dll.a *.*
- if "%MINGW%"=="1" gmake -s -C win32 %MKOPT%
#- if "%CFG%"=="Debug" type config.sh
- if "%CYGWIN%"=="1" sh ./Configure -des -Dusedevel & make -s -j4 ECHO=true
test_script:
- ps: if ($env:MSVC_VERSION -gt 0) { $env:MSVC = 1 }
- if not "%CYGWIN%"=="1" copy win32\bin\libffi*.dll t\
- if "%MSVC%"=="1" t\appveyor-smoke.bat
- if "%CYGWIN%"=="1" make -s -j4 test ECHO=true
- if "%MINGW%"=="1" gmake -s -C win32 %MKOPT% test
- if "%CFG%"=="Debug" exit
#- if "%CYGWIN%"=="1" ./cperl -pi -e 's/\r\n/\n/g' Porting/appveyor-deploy.sh
- if "%CYGWIN%"=="1" sh -c Porting/appveyor-deploy.sh
- if "%MINGW%"=="1" rename c:\MinGW.old MinGW
- if "%MINGW%"=="1" set PATH=c:\Windows\system32;c:\Windows;C:\strawberry\c\bin;C:\strawberry\perl\bin;c:\Windows\system32\Wbem;C:\MinGW\bin;C:\MinGW\msys\1.0\bin;C:\projects\cperl;C:\projects\cperl\win32\bin;
- if "%MINGW%"=="1" sh -c Porting/appveyor-deploy.sh
# appveyor cannot glob * in names
artifacts:
# nightlies
- path: cperl-$(appveyor_build_version)-win32.exe
name: nightly-vc32
type: exe
- path: cperl-$(appveyor_build_version)-win64.exe
name: nightly-vc64
type: exe
- path: cperl-$(appveyor_build_version)-mingw-x86.tar.xz
name: nightly-mw32
type: tar
- path: cperl-$(appveyor_build_version)-mingw-x64.tar.xz
name: nightly-mw64
type: tar
- path: cperl-$(appveyor_build_version)-cygwin-x86.tar.xz
name: nightly-cyg32
type: tar
- path: cperl-$(appveyor_build_version)-cygwin-x64.tar.xz
name: nightly-cyg64
type: tar
# tagged
- path: $(APPVEYOR_REPO_TAG_NAME)-win32.exe
name: tagged-vc32
type: exe
- path: $(APPVEYOR_REPO_TAG_NAME)-win64.exe
name: tagged-vc64
type: exe
- path: $(APPVEYOR_REPO_TAG_NAME)-cygwin-x86.tar.xz
name: cygwin-32
type: tar
- path: $(APPVEYOR_REPO_TAG_NAME)-cygwin-x64.tar.xz
name: cygwin-64
type: tar
- path: $(APPVEYOR_REPO_TAG_NAME)-mingw-x86.tar.xz
name: mingw-32
type: tar
- path: $(APPVEYOR_REPO_TAG_NAME)-mingw-x64.tar.xz
name: mingw-64
type: tar
deploy:
- provider: GitHub
tag: cperl-win-$(appveyor_build_version)
description: 'cperl windows nightly'
auth_token:
secure: AsIAOIgCJX0QhrUKal2V00aaB5nRWtmtFTFeDVsGnbJLeEQpv9avUp0HT1cA8bNs
artifact: nightly-mw32,nightly-mw64,nightly-vc32,nightly-vc64,nightly-cyg32,nightly-cyg64
draft: true
prerelease: true
force_update: true
on:
branch: /(master|relprep|cperl-tag-deploy-test|maint-5)/
- provider: GitHub
tag: $(APPVEYOR_REPO_TAG_NAME)-win
description: 'cperl windows tagged'
auth_token:
secure: AsIAOIgCJX0QhrUKal2V00aaB5nRWtmtFTFeDVsGnbJLeEQpv9avUp0HT1cA8bNs
artifact: mingw-32,mingw-64,cygwin-32,cygwin-64,tagged-vc32,tagged-vc64
draft: true
force_update: true
on:
appveyor_repo_tag: true
notifications:
- provider: Email
to:
subject: cperl windows build
on_build_success: true
on_build_failure: true
on_build_status_changed: false