0
0
mirror of https://github.com/phpv8/v8js.git synced 2024-11-10 02:38:42 +00:00
phpv8/appveyor.yml

104 lines
3.4 KiB
YAML
Raw Normal View History

2016-01-06 13:02:32 +00:00
environment:
matrix:
2018-07-05 09:46:50 +00:00
- ARTIFACT_NAME: v8js_vc15_php-7.3_%Platform%_ts.zip
2016-01-06 19:17:26 +00:00
OUTDIR: Release_TS
V8_ASSETS: V8-5.8.283.31-%Platform%.zip
2018-07-05 09:46:50 +00:00
PHP_VERSION: 7.3.0alpha3
- ARTIFACT_NAME: v8js_vc15_php-7.3_%Platform%_nts.zip
2016-01-06 19:17:26 +00:00
OUTDIR: Release
CONFIGURE_EXTRA: --disable-zts
V8_ASSETS: V8-5.8.283.31-%Platform%.zip
2018-07-05 09:46:50 +00:00
PHP_VERSION: 7.3.0alpha3
- ARTIFACT_NAME: v8js_vc15_php-7.2_%Platform%_ts.zip
2017-04-22 10:04:14 +00:00
OUTDIR: Release_TS
V8_ASSETS: V8-5.8.283.31-%Platform%.zip
2018-07-05 09:46:50 +00:00
PHP_VERSION: 7.2.7
- ARTIFACT_NAME: v8js_vc15_php-7.2_%Platform%_nts.zip
2017-04-22 10:04:14 +00:00
OUTDIR: Release
CONFIGURE_EXTRA: --disable-zts
V8_ASSETS: V8-5.8.283.31-%Platform%.zip
2018-07-05 09:46:50 +00:00
PHP_VERSION: 7.2.7
2016-01-06 19:17:26 +00:00
2016-01-06 13:02:32 +00:00
PHP_SDK: c:\projects\php-sdk
2018-07-05 09:46:50 +00:00
os: Visual Studio 2017
clone_folder: c:\projects\php-sdk\v8js-ci\vc15\%Platform%\php\ext\v8js
2016-01-06 13:02:32 +00:00
2017-03-05 19:52:01 +00:00
platform:
- x64
- x86
2016-01-06 13:02:32 +00:00
install:
- cd %PHP_SDK%
2018-07-05 09:46:50 +00:00
- curl -fSL -o php-sdk-2.1.7beta1.zip "https://github.com/Microsoft/php-sdk-binary-tools/archive/php-sdk-2.1.7beta1.zip"
- 7z.exe x php-sdk-2.1.7beta1.zip
- move /y php-sdk-binary-tools-php-sdk-2.1.7beta1\* .
- for /R /D %%f in (php-sdk-binary-tools-php-sdk-2.1.7beta1\*) do move /y %%f .
2016-01-06 13:02:32 +00:00
- call bin\phpsdk_setvars.bat
- call bin\phpsdk_buildtree.bat v8js-ci
2018-07-05 09:46:50 +00:00
- cd v8js-ci\vc15\%Platform%
2016-01-06 13:02:32 +00:00
- md deps
- cd deps
- curl -fSL -o %V8_ASSETS% "https://s3.amazonaws.com/win-phpv8/%V8_ASSETS%"
- 7z.exe x %V8_ASSETS%
- cd ..
2018-07-05 09:46:50 +00:00
- curl -fSL -o "php-%PHP_VERSION%.tar.gz" "https://github.com/php/php-src/archive/php-%PHP_VERSION%.tar.gz"
- ren php php-src-php-%PHP_VERSION%
2016-01-06 19:17:26 +00:00
- 7z.exe x php-%PHP_VERSION%.tar.gz -y
- 7z.exe x php-%PHP_VERSION%.tar -y | find /v "Extracting"
2018-07-05 09:46:50 +00:00
- dir
- ren php-src-php-%PHP_VERSION% php-%PHP_VERSION%
2016-01-06 19:17:26 +00:00
- cd php-%PHP_VERSION%
2017-03-05 19:52:01 +00:00
- IF "%Platform%" == "x64" SET OUTDIR=x64\%OUTDIR%
2016-01-06 19:17:26 +00:00
- mkdir %OUTDIR%
- move ..\deps\bin\*.dll %OUTDIR%\
- move ..\deps\bin\icudtl.dat %OUTDIR%\
2016-01-06 13:02:32 +00:00
build_script:
2017-03-05 19:52:01 +00:00
- ps: >-
If ($env:Platform -Match "x86") {
$env:VCVARS_PLATFORM="x86"
$env:ENV_PLATFORM="x86"
} Else {
$env:VCVARS_PLATFORM="amd64"
$env:ENV_PLATFORM="x64"
}
2018-07-05 09:46:50 +00:00
- call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" %VCVARS_PLATFORM%
- cd
2016-01-06 13:02:32 +00:00
- echo Building PHP [%PHP_VERSION%]
- '%PHP_SDK%\bin\phpsdk_setvars'
- buildconf
2016-01-06 19:17:26 +00:00
- configure --disable-all --enable-cli --with-v8js %CONFIGURE_EXTRA%
2016-01-06 13:02:32 +00:00
- nmake
after_build:
2016-01-06 19:17:26 +00:00
- cd %OUTDIR%
- 7z a %ARTIFACT_NAME% icudtl.dat icu*.dll v8.dll php_v8js.dll
2016-01-06 19:17:26 +00:00
- ps: Push-AppveyorArtifact $env:ARTIFACT_NAME
2016-01-06 13:02:32 +00:00
test_script:
2018-07-05 09:46:50 +00:00
- cd c:\projects\php-sdk\v8js-ci\vc15\%Platform%\php-%PHP_VERSION%
2016-01-06 13:02:32 +00:00
- set NO_INTERACTION=1
- set TEST_PHP_JUNIT=junit.xml
- set REPORT_EXIT_STATUS=1
2018-07-05 09:46:50 +00:00
- "%OUTDIR%\\php.exe run-tests.php -p %OUTDIR%\\php.exe ext/v8js/tests/ -d v8js.icudtl_dat_path=%OUTDIR%/icudtl.dat -d extension=php_v8js.dll -d extension_dir=%OUTDIR%\\ --show-diff"
2016-01-06 13:02:32 +00:00
on_finish:
2018-07-05 09:46:50 +00:00
- cd c:\projects\php-sdk\v8js-ci\vc15\%Platform%\php-%PHP_VERSION%
2016-01-06 13:02:32 +00:00
- ps: |
# upload results to AppVeyor
$wc = New-Object 'System.Net.WebClient'
$wc.UploadFile("https://ci.appveyor.com/api/testresults/junit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path .\junit.xml))
deploy:
provider: S3
access_key_id: AKIAJBJLBBZPMYOGVKEA
secret_access_key:
secure: N+jqdcvCOzqfrwL7ClIvcd9TkmQe9dghJwZMjLYtv7syVW5c4EU9YrqUbUUGmZ04
bucket: win-phpv8
set_public: true
2016-01-06 19:17:26 +00:00
artifact: "*.zip"
2016-01-06 13:02:32 +00:00
on:
branch: php7