2016-01-06 13:02:32 +00:00
|
|
|
environment:
|
|
|
|
matrix:
|
2016-01-06 19:17:26 +00:00
|
|
|
- BUILD_PLATFORM: x86
|
|
|
|
ARTIFACT_NAME: v8js_vc14_php7_ts.zip
|
|
|
|
OUTDIR: Release_TS
|
2017-03-05 19:51:11 +00:00
|
|
|
V8_ASSETS: win32build.vc14.zip
|
2016-01-06 19:17:26 +00:00
|
|
|
- BUILD_PLATFORM: x86
|
|
|
|
ARTIFACT_NAME: v8js_vc14_php7_nts.zip
|
|
|
|
OUTDIR: Release
|
|
|
|
CONFIGURE_EXTRA: --disable-zts
|
2017-03-05 19:51:11 +00:00
|
|
|
V8_ASSETS: win32build.vc14.zip
|
2016-01-06 19:17:26 +00:00
|
|
|
|
2017-03-05 19:29:50 +00:00
|
|
|
PHP_VERSION: 7.0.16
|
2016-01-06 13:02:32 +00:00
|
|
|
PHP_SDK: c:\projects\php-sdk
|
|
|
|
|
|
|
|
os: Windows Server 2012
|
2016-01-06 19:17:26 +00:00
|
|
|
clone_folder: c:\projects\php-sdk\v8js-ci\vc14\x86\php\ext\v8js
|
2016-01-06 13:02:32 +00:00
|
|
|
|
|
|
|
matrix:
|
|
|
|
fast_finish: true
|
|
|
|
|
|
|
|
install:
|
|
|
|
- cd %PHP_SDK%
|
|
|
|
- curl -fSL -o php-sdk-binary-tools-20110915.zip 'http://windows.php.net/downloads/php-sdk/php-sdk-binary-tools-20110915.zip'
|
|
|
|
- 7z.exe x php-sdk-binary-tools-20110915.zip
|
|
|
|
- call bin\phpsdk_setvars.bat
|
|
|
|
- call bin\phpsdk_buildtree.bat v8js-ci
|
|
|
|
- cd v8js-ci\vc14\x86
|
|
|
|
- md deps
|
2017-03-05 19:37:22 +00:00
|
|
|
- cd deps
|
2017-03-05 19:51:11 +00:00
|
|
|
- curl -fSL -o %V8_ASSETS% 'https://s3.amazonaws.com/win-phpv8/%V8_ASSETS%'
|
|
|
|
- 7z.exe x %V8_ASSETS%
|
2017-03-05 19:37:22 +00:00
|
|
|
- cd ..
|
2016-01-06 19:17:26 +00:00
|
|
|
- curl -fSL -o 'php-%PHP_VERSION%.tar.gz' 'http://us1.php.net/distributions/php-%PHP_VERSION%.tar.gz'
|
|
|
|
- ren php php-%PHP_VERSION%
|
|
|
|
- 7z.exe x php-%PHP_VERSION%.tar.gz -y
|
|
|
|
- 7z.exe x php-%PHP_VERSION%.tar -y | find /v "Extracting"
|
|
|
|
- cd php-%PHP_VERSION%
|
|
|
|
- mkdir %OUTDIR%
|
2017-03-05 19:37:22 +00:00
|
|
|
- move ..\deps\bin\*.dll %OUTDIR%\
|
2016-01-06 13:02:32 +00:00
|
|
|
|
|
|
|
build_script:
|
|
|
|
- '"%VS140COMNTOOLS%\VsDevCmd" %BUILD_PLATFORM%'
|
|
|
|
- set
|
|
|
|
- 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% icu*.dll v8.dll php_v8js.dll
|
|
|
|
- ps: Push-AppveyorArtifact $env:ARTIFACT_NAME
|
2016-01-06 13:02:32 +00:00
|
|
|
|
|
|
|
test_script:
|
2016-01-06 19:17:26 +00:00
|
|
|
- cd c:\projects\php-sdk\v8js-ci\vc14\x86\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
|
2016-01-06 19:17:26 +00:00
|
|
|
- "%OUTDIR%\\php.exe run-tests.php -p %OUTDIR%\\php.exe ext/v8js/tests/ -d extension=php_v8js.dll -d extension_dir=%OUTDIR%\\"
|
2016-01-06 13:02:32 +00:00
|
|
|
|
|
|
|
on_finish:
|
2016-01-06 19:17:26 +00:00
|
|
|
- cd c:\projects\php-sdk\v8js-ci\vc14\x86\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
|
|
|
|
|