forked from phpv8/v8js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
76 lines (66 loc) · 2.32 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
environment:
matrix:
- BUILD_PLATFORM: x86
ARTIFACT_NAME: v8js_vc14_php7_ts.zip
OUTDIR: Release_TS
- BUILD_PLATFORM: x86
ARTIFACT_NAME: v8js_vc14_php7_nts.zip
OUTDIR: Release
CONFIGURE_EXTRA: --disable-zts
PHP_VERSION: 7.0.7
PHP_SDK: c:\projects\php-sdk
os: Windows Server 2012
clone_folder: c:\projects\php-sdk\v8js-ci\vc14\x86\php\ext\v8js
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
- curl -fSL -o v8-4.9.385.29-x86-deps.zip 'https://s3.amazonaws.com/win-phpv8/v8-4.9.385.29-x86-deps.zip'
- 7z.exe x v8-4.9.385.29-x86-deps.zip
- 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%
- move ..\deps\lib\*.dll %OUTDIR%\
build_script:
- '"%VS140COMNTOOLS%\VsDevCmd" %BUILD_PLATFORM%'
- set
- echo Building PHP [%PHP_VERSION%]
- '%PHP_SDK%\bin\phpsdk_setvars'
- buildconf
- configure --disable-all --enable-cli --with-v8js %CONFIGURE_EXTRA%
- nmake
after_build:
- cd %OUTDIR%
- 7z a %ARTIFACT_NAME% icu*.dll v8.dll php_v8js.dll
- ps: Push-AppveyorArtifact $env:ARTIFACT_NAME
test_script:
- cd c:\projects\php-sdk\v8js-ci\vc14\x86\php-%PHP_VERSION%
- set NO_INTERACTION=1
- set TEST_PHP_JUNIT=junit.xml
- 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%\\"
on_finish:
- cd c:\projects\php-sdk\v8js-ci\vc14\x86\php-%PHP_VERSION%
- 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
artifact: "*.zip"
on:
branch: php7