mirror of
https://github.com/phpv8/v8js.git
synced 2024-11-09 16:28:41 +00:00
(appveyor) add x64 builds
This commit is contained in:
parent
e631f25f01
commit
a9bdc32125
35
appveyor.yml
35
appveyor.yml
@ -1,23 +1,22 @@
|
|||||||
environment:
|
environment:
|
||||||
matrix:
|
matrix:
|
||||||
- BUILD_PLATFORM: x86
|
- ARTIFACT_NAME: v8js_vc14_php7_%Platform%_ts.zip
|
||||||
ARTIFACT_NAME: v8js_vc14_php7_ts.zip
|
|
||||||
OUTDIR: Release_TS
|
OUTDIR: Release_TS
|
||||||
V8_ASSETS: win32build.vc14.zip
|
V8_ASSETS: V8-5.8.301.0-%Platform%.zip
|
||||||
- BUILD_PLATFORM: x86
|
- ARTIFACT_NAME: v8js_vc14_php7_%Platform%_nts.zip
|
||||||
ARTIFACT_NAME: v8js_vc14_php7_nts.zip
|
|
||||||
OUTDIR: Release
|
OUTDIR: Release
|
||||||
CONFIGURE_EXTRA: --disable-zts
|
CONFIGURE_EXTRA: --disable-zts
|
||||||
V8_ASSETS: win32build.vc14.zip
|
V8_ASSETS: V8-5.8.301.0-%Platform%.zip
|
||||||
|
|
||||||
PHP_VERSION: 7.0.16
|
PHP_VERSION: 7.0.16
|
||||||
PHP_SDK: c:\projects\php-sdk
|
PHP_SDK: c:\projects\php-sdk
|
||||||
|
|
||||||
os: Windows Server 2012
|
os: Windows Server 2012
|
||||||
clone_folder: c:\projects\php-sdk\v8js-ci\vc14\x86\php\ext\v8js
|
clone_folder: c:\projects\php-sdk\v8js-ci\vc14\%Platform%\php\ext\v8js
|
||||||
|
|
||||||
matrix:
|
platform:
|
||||||
fast_finish: true
|
- x64
|
||||||
|
- x86
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- cd %PHP_SDK%
|
- cd %PHP_SDK%
|
||||||
@ -25,7 +24,7 @@ install:
|
|||||||
- 7z.exe x php-sdk-binary-tools-20110915.zip
|
- 7z.exe x php-sdk-binary-tools-20110915.zip
|
||||||
- call bin\phpsdk_setvars.bat
|
- call bin\phpsdk_setvars.bat
|
||||||
- call bin\phpsdk_buildtree.bat v8js-ci
|
- call bin\phpsdk_buildtree.bat v8js-ci
|
||||||
- cd v8js-ci\vc14\x86
|
- cd v8js-ci\vc14\%Platform%
|
||||||
- md deps
|
- md deps
|
||||||
- cd deps
|
- cd deps
|
||||||
- curl -fSL -o %V8_ASSETS% 'https://s3.amazonaws.com/win-phpv8/%V8_ASSETS%'
|
- curl -fSL -o %V8_ASSETS% 'https://s3.amazonaws.com/win-phpv8/%V8_ASSETS%'
|
||||||
@ -36,12 +35,20 @@ install:
|
|||||||
- 7z.exe x php-%PHP_VERSION%.tar.gz -y
|
- 7z.exe x php-%PHP_VERSION%.tar.gz -y
|
||||||
- 7z.exe x php-%PHP_VERSION%.tar -y | find /v "Extracting"
|
- 7z.exe x php-%PHP_VERSION%.tar -y | find /v "Extracting"
|
||||||
- cd php-%PHP_VERSION%
|
- cd php-%PHP_VERSION%
|
||||||
|
- IF "%Platform%" == "x64" SET OUTDIR=x64\%OUTDIR%
|
||||||
- mkdir %OUTDIR%
|
- mkdir %OUTDIR%
|
||||||
- move ..\deps\bin\*.dll %OUTDIR%\
|
- move ..\deps\bin\*.dll %OUTDIR%\
|
||||||
|
|
||||||
build_script:
|
build_script:
|
||||||
- '"%VS140COMNTOOLS%\VsDevCmd" %BUILD_PLATFORM%'
|
- ps: >-
|
||||||
- set
|
If ($env:Platform -Match "x86") {
|
||||||
|
$env:VCVARS_PLATFORM="x86"
|
||||||
|
$env:ENV_PLATFORM="x86"
|
||||||
|
} Else {
|
||||||
|
$env:VCVARS_PLATFORM="amd64"
|
||||||
|
$env:ENV_PLATFORM="x64"
|
||||||
|
}
|
||||||
|
- call "%VS140COMNTOOLS%\..\..\VC\vcvarsall.bat" %VCVARS_PLATFORM%
|
||||||
- echo Building PHP [%PHP_VERSION%]
|
- echo Building PHP [%PHP_VERSION%]
|
||||||
- '%PHP_SDK%\bin\phpsdk_setvars'
|
- '%PHP_SDK%\bin\phpsdk_setvars'
|
||||||
- buildconf
|
- buildconf
|
||||||
@ -54,14 +61,14 @@ after_build:
|
|||||||
- ps: Push-AppveyorArtifact $env:ARTIFACT_NAME
|
- ps: Push-AppveyorArtifact $env:ARTIFACT_NAME
|
||||||
|
|
||||||
test_script:
|
test_script:
|
||||||
- cd c:\projects\php-sdk\v8js-ci\vc14\x86\php-%PHP_VERSION%
|
- cd c:\projects\php-sdk\v8js-ci\vc14\%Platform%\php-%PHP_VERSION%
|
||||||
- set NO_INTERACTION=1
|
- set NO_INTERACTION=1
|
||||||
- set TEST_PHP_JUNIT=junit.xml
|
- set TEST_PHP_JUNIT=junit.xml
|
||||||
- set REPORT_EXIT_STATUS=1
|
- set REPORT_EXIT_STATUS=1
|
||||||
- "%OUTDIR%\\php.exe run-tests.php -p %OUTDIR%\\php.exe ext/v8js/tests/ -d extension=php_v8js.dll -d extension_dir=%OUTDIR%\\"
|
- "%OUTDIR%\\php.exe run-tests.php -p %OUTDIR%\\php.exe ext/v8js/tests/ -d extension=php_v8js.dll -d extension_dir=%OUTDIR%\\"
|
||||||
|
|
||||||
on_finish:
|
on_finish:
|
||||||
- cd c:\projects\php-sdk\v8js-ci\vc14\x86\php-%PHP_VERSION%
|
- cd c:\projects\php-sdk\v8js-ci\vc14\%Platform%\php-%PHP_VERSION%
|
||||||
- ps: |
|
- ps: |
|
||||||
# upload results to AppVeyor
|
# upload results to AppVeyor
|
||||||
$wc = New-Object 'System.Net.WebClient'
|
$wc = New-Object 'System.Net.WebClient'
|
||||||
|
Loading…
Reference in New Issue
Block a user