Skip to content

Commit 3183c02

Browse files
committed
Build DLL for PHP 7.3
1 parent 9b89478 commit 3183c02

File tree

3 files changed

+61
-373
lines changed

3 files changed

+61
-373
lines changed

.appveyor.yml

Lines changed: 55 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2,36 +2,52 @@ version: 1.2.0-{build}
22

33
environment:
44
matrix:
5+
56
- PHP_MINOR: 7.0
67
VC_VERSION: 14
78
BUILD_TYPE: "Win32"
89
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2013
10+
911
- PHP_MINOR: 7.0
1012
VC_VERSION: 14
1113
BUILD_TYPE: "nts-Win32"
1214
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2013
15+
1316
- PHP_MINOR: 7.1
1417
VC_VERSION: 14
1518
BUILD_TYPE: "Win32"
1619
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2013
20+
1721
- PHP_MINOR: 7.1
1822
VC_VERSION: 14
1923
BUILD_TYPE: "nts-Win32"
2024
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2013
25+
2126
- PHP_MINOR: 7.2
2227
VC_VERSION: 15
2328
BUILD_TYPE: "Win32"
2429
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
30+
2531
- PHP_MINOR: 7.2
2632
VC_VERSION: 15
2733
BUILD_TYPE: "nts-Win32"
2834
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
29-
PHP_PATH: C:\Projects\php
30-
PHP_SDK_PATH: C:\Projects\php-sdk
31-
DEVPACK_PATH: C:\Projects\php-devpack
35+
36+
- PHP_VERSION: 7.3
37+
VC_VERSION: 15
38+
BUILD_TYPE: Win32
39+
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
40+
41+
- PHP_VERSION: 7.3
42+
VC_VERSION: 15
43+
BUILD_TYPE: nts-Win32
44+
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
45+
3246
PHP_SDK_VERSION: 2.0.7
47+
PHP_AVM: https://raw.githubusercontent.com/sergeyklay/php-appveyor/master/php-appveyor.psm1
3348
NO_INTERACTION: 1
3449
REPORT_EXIT_STATUS: 1
50+
3551
PACKAGE_PREFIX: zephir_parser
3652
EXTENSION_NAME: "Zephir Parser"
3753
EXTENSION_FILE: php_zephir_parser.dll
@@ -54,16 +70,18 @@ branches:
5470
- master
5571
- development
5672

73+
init:
74+
- ps: $DebugPreference = 'SilentlyContinue' # Continue
75+
5776
install:
58-
- git submodule update --init
77+
- ps: (new-object Net.WebClient).DownloadString($Env:PHP_AVM) | iex
78+
79+
- ps: InstallPhpSdk $Env:PHP_SDK_VERSION $Env:VC_VERSION $Env:PLATFORM
80+
- ps: InstallPhp $Env:PHP_VERSION $Env:BUILD_TYPE $Env:VC_VERSION $Env:PLATFORM
81+
- ps: InstallPhpDevPack $Env:PHP_VERSION $Env:BUILD_TYPE $Env:VC_VERSION $Env:PLATFORM
82+
5983
- ps: Import-Module .\.ci\AppVeyor.psm1
6084
- ps: AppendSessionPath
61-
- ps: SetupPhpVersionString
62-
- ps: EnsureRequiredDirectoriesPresent
63-
- ps: Ensure7ZipIsInstalled
64-
- ps: InstallSdk
65-
- ps: InstallPhp
66-
- ps: InstallPhpDevPack
6785
- ps: TuneUpPhp
6886

6987
build_script:
@@ -73,22 +91,40 @@ build_script:
7391
- phpsdk_setvars
7492
- cmd /c .ci\build-win32.bat
7593
- phpize
76-
- cmd: 'configure --with-prefix=%PHP_PATH% --with-php-build=%DEVPACK_PATH% --disable-all --enable-zephir-parser=shared'
94+
- cmd: 'configure --with-prefix=C:\php --with-php-build=C:\php-devpack --disable-all --enable-zephir-parser=shared'
7795
- cmd: nmake 2> compile-errors.log 1> compile.log
7896
- ps: InitializeReleaseVars
79-
- ps: EnableExtension
8097

81-
after_build:
82-
- ps: InstallBuildDependencies
83-
- ps: PrepareReleasePackage
98+
test_script:
99+
- ps: >-
100+
EnablePhpExtension `
101+
-Name zephir_parser `
102+
-PrintableName "Zephir Parser" `
103+
-ExtPath $Env:RELEASE_PATH
104+
105+
after_test:
106+
- ps: >-
107+
PrepareReleasePackage `
108+
-PhpVersion $Env:PHP_VERSION `
109+
-BuildType $Env:BUILD_TYPE `
110+
-Platform $Env:PLATFORM `
111+
-ConverMdToHtml $true `
112+
-ReleaseFiles "${Env:RELEASE_PATH}\php_zephir_parser.dll",`
113+
"${Env:APPVEYOR_BUILD_FOLDER}\LICENSE",`
114+
"${Env:APPVEYOR_BUILD_FOLDER}\CREDITS",`
115+
"${Env:APPVEYOR_BUILD_FOLDER}\VERSION",`
116+
"${Env:APPVEYOR_BUILD_FOLDER}\NO_WARRANTY"
84117
85118
artifacts:
86119
- path: '.\$(RELEASE_ZIPBALL).zip'
87120
type: zip
88121
name: ZephirParser
89122

90123
on_failure:
91-
- ps: PrintBuildArtifacts
92-
- ps: PrintVars
93-
- ps: PrintDirectoriesContent
94-
- ps: PrintPhpInfo
124+
- ps: >-
125+
if (Test-Path -Path "${Env:APPVEYOR_BUILD_FOLDER}\compile-errors.log") {
126+
Get-Content -Path "${Env:APPVEYOR_BUILD_FOLDER}\compile-errors.log"
127+
}
128+
if (Test-Path -Path "${Env:APPVEYOR_BUILD_FOLDER}\compile.log") {
129+
Get-Content -Path "${Env:APPVEYOR_BUILD_FOLDER}\compile.log"
130+
}

0 commit comments

Comments
 (0)