forked from phalcon/cphalcon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
168 lines (140 loc) · 5.16 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
# This file is part of the Phalcon Framework.
#
# (c) Phalcon Team <team@phalcon.io>
#
# For the full copyright and license information, please view
# the LICENSE.txt file that was distributed with this source code.
version: 4.0.0+{build}
environment:
matrix:
- PHP_VERSION: '7.4'
VC_VERSION: '15'
BUILD_TYPE: Win32
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
- PHP_VERSION: '7.4'
VC_VERSION: '15'
BUILD_TYPE: nts-Win32
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
- PHP_VERSION: '7.3'
VC_VERSION: '15'
BUILD_TYPE: Win32
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
- PHP_VERSION: '7.3'
VC_VERSION: '15'
BUILD_TYPE: nts-Win32
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
- PHP_VERSION: '7.2'
VC_VERSION: '15'
BUILD_TYPE: Win32
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
- PHP_VERSION: '7.2'
VC_VERSION: '15'
BUILD_TYPE: nts-Win32
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
PHP_AVM: https://raw.githubusercontent.com/sergeyklay/php-appveyor/master/php-appveyor.psm1
PHP_SDK_VERSION: 2.1.9
ZEPHIR_PARSER_VERSION: 1.3.3
ZEPHIR_PARSER_RELEASE: 514
ZEPHIR_VERSION: 0.12.15
TEST_PHP_EXECUTABLE: C:\php\php.exe
NO_INTERACTION: 1
REPORT_EXIT_STATUS: 1
COMPOSER_NO_INTERACTION: 1
matrix:
fast_finish: true
cache:
- 'C:\Downloads -> appveyor.yml'
clone_depth: 1
clone_folder: c:\projects\phalcon
platform:
- x86
- x64
branches:
only:
- master
- 4.0.x
init:
- ps: $DebugPreference = 'SilentlyContinue' # Continue
install:
- ps: (new-object Net.WebClient).DownloadString($Env:PHP_AVM) | iex
- ps: InstallPhpSdk $Env:PHP_SDK_VERSION $Env:VC_VERSION $Env:PLATFORM
- ps: InstallPhp $Env:PHP_VERSION $Env:BUILD_TYPE $Env:VC_VERSION $Env:PLATFORM
- ps: InstallPhpDevPack $Env:PHP_VERSION $Env:BUILD_TYPE $Env:VC_VERSION $Env:PLATFORM
- ps: TuneUpPhp -DefaultExtensions openssl,mbstring,pdo_sqlite,fileinfo,gettext,gd2
- ps: InstallComposer
- ps: InstallZephir -Version $Env:ZEPHIR_VERSION
- ps: >-
InstallPeclExtension `
-Name psr `
-Version 0.7.0 `
-PhpVersion $Env:PHP_VERSION `
-BuildType $Env:BUILD_TYPE `
-VC $Env:VC_VERSION `
-Platform $Env:PLATFORM
- ps: >-
InstallPeclExtension `
-Name redis `
-Version 5.1.1 `
-PhpVersion $Env:PHP_VERSION `
-BuildType $Env:BUILD_TYPE `
-VC $Env:VC_VERSION `
-Platform $Env:PLATFORM
- ps: >-
InstallZephirParser `
-Version $Env:ZEPHIR_PARSER_VERSION `
-BuildId $Env:ZEPHIR_PARSER_RELEASE `
-PhpVersion $Env:PHP_VERSION `
-BuildType $Env:BUILD_TYPE `
-VC $Env:VC_VERSION `
-Platform $Env:PLATFORM
before_build:
- ps: EnablePhpExtension -Name psr
- ps: EnablePhpExtension -Name redis
- ps: EnablePhpExtension -Name zephir_parser -PrintableName "Zephir Parser"
build_script:
- ps: Import-Module .\.ci\appveyor.psm1
- ps: InitializeBuildVars
- cmd: '"%VSCOMNTOOLS%\VsDevCmd" -arch=%PLATFORM%'
- cmd: '"%VCVARSALL_FILE%" %ARCH%'
- cmd: C:\php-sdk\bin\phpsdk_setvars
- cmd: C:\php\php.exe zephir.phar --version
- cmd: C:\php\php.exe zephir.phar generate --backend=ZendEngine3 -Wnonexistent-function -Wnonexistent-class -Wunused-variable
- ps: Set-Location "${Env:APPVEYOR_BUILD_FOLDER}\build"
- cmd: C:\php\php.exe gen-build.php
- ps: Set-Location "${Env:APPVEYOR_BUILD_FOLDER}\build\php7\safe"
- cmd: C:\php-devpack\phpize
- cmd: configure --with-prefix=C:\php --with-php-build=C:\php-devpack --disable-all --enable-phalcon
- cmd: nmake 2> compile-errors.log 1> compile.log
- ps: InitializeReleaseVars
after_build:
- ps: Set-Location "${Env:APPVEYOR_BUILD_FOLDER}"
- ps: >-
PrepareReleasePackage `
-PhpVersion $Env:PHP_VERSION `
-BuildType $Env:BUILD_TYPE `
-Platform $Env:PLATFORM `
-ConverMdToHtml $true `
-ReleaseFiles "${Env:RELEASE_DLL_PATH}",`
"${Env:APPVEYOR_BUILD_FOLDER}\3rdparty\licenses\LICENSE-PHP.txt",`
"${Env:APPVEYOR_BUILD_FOLDER}\3rdparty\licenses\LICENSE-ZEND.txt",`
"${Env:APPVEYOR_BUILD_FOLDER}\3rdparty\licenses\LICENSE-ATLAS.txt",`
"${Env:APPVEYOR_BUILD_FOLDER}\3rdparty\licenses\LICENSE-AURA.txt",`
"${Env:APPVEYOR_BUILD_FOLDER}\3rdparty\licenses\LICENSE-DIACTOROS.txt"
artifacts:
- path: '.\$(RELEASE_ZIPBALL).zip'
type: zip
name: Phalcon
on_failure:
- ps: $LogsDirectory = "${Env:APPVEYOR_BUILD_FOLDER}\build\php7\safe"
- ps: $FilterPattern = "(warning C4267)|(warning C4244)|(warning C4018)"
- ps: >-
if (Test-Path -Path "${LogsDirectory}\compile-errors.log") {
Get-Content -Path "${LogsDirectory}\compile-errors.log" | Where-Object {
$_ -notMatch "${FilterPattern}"
}
}
if (Test-Path -Path "${LogsDirectory}\compile.log") {
Get-Content -Path "${LogsDirectory}\compile.log" | Where-Object {
$_ -notMatch "${FilterPattern}"
}
}