Skip to content

Commit fdd3c4b

Browse files
committed
Merge pull request #199 from stesie/appveyor-nts
appveyor: build x86-nts as well
2 parents 80e2379 + b2b5e78 commit fdd3c4b

File tree

1 file changed

+25
-22
lines changed

1 file changed

+25
-22
lines changed

appveyor.yml

Lines changed: 25 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,18 @@
11
environment:
22
matrix:
3-
- PHP_VERSION: 7.0.1
4-
BUILD_PLATFORM: x86
5-
PHP_VC: 14
3+
- BUILD_PLATFORM: x86
4+
ARTIFACT_NAME: v8js_vc14_php7_ts.zip
5+
OUTDIR: Release_TS
6+
- BUILD_PLATFORM: x86
7+
ARTIFACT_NAME: v8js_vc14_php7_nts.zip
8+
OUTDIR: Release
9+
CONFIGURE_EXTRA: --disable-zts
10+
11+
PHP_VERSION: 7.0.1
612
PHP_SDK: c:\projects\php-sdk
7-
PHP_DEVPACK: c:\projects\php-devpack
813

914
os: Windows Server 2012
10-
clone_folder: c:\projects\php-sdk\v8js-ci\vc14\x86\php-7.0.1\ext\v8js
15+
clone_folder: c:\projects\php-sdk\v8js-ci\vc14\x86\php\ext\v8js
1116

1217
matrix:
1318
fast_finish: true
@@ -20,45 +25,43 @@ install:
2025
- call bin\phpsdk_buildtree.bat v8js-ci
2126
- cd v8js-ci\vc14\x86
2227
- md deps
23-
- ps: (New-Object Net.WebClient).DownloadFile('https://jenkins.brokenpipe.de/job/V8Js-PHP7/job/win-v8/lastSuccessfulBuild/artifact/*zip*/archive.zip', 'archive.zip')
2428
- curl -fSL -o archive.zip 'https://jenkins.brokenpipe.de/job/V8Js-PHP7/job/win-v8/lastSuccessfulBuild/artifact/*zip*/archive.zip'
2529
- 7z.exe x archive.zip
2630
- move archive\v8\include deps\
2731
- mkdir deps\include\include
2832
- copy deps\include\v8-platform.h deps\include\include\
2933
- move archive\v8\build\Release\lib deps\
30-
- curl -fSL -o 'php-7.0.1.tar.gz' 'http://us1.php.net/distributions/php-7.0.1.tar.gz'
31-
- 7z.exe x php-7.0.1.tar.gz -y
32-
- 7z.exe x php-7.0.1.tar -y | find /v "Extracting"
33-
- cd php-7.0.1
34-
- mkdir Release_TS
35-
- move ..\archive\v8\build\Release\*.dll Release_TS\
34+
- curl -fSL -o 'php-%PHP_VERSION%.tar.gz' 'http://us1.php.net/distributions/php-%PHP_VERSION%.tar.gz'
35+
- ren php php-%PHP_VERSION%
36+
- 7z.exe x php-%PHP_VERSION%.tar.gz -y
37+
- 7z.exe x php-%PHP_VERSION%.tar -y | find /v "Extracting"
38+
- cd php-%PHP_VERSION%
39+
- mkdir %OUTDIR%
40+
- move ..\archive\v8\build\Release\*.dll %OUTDIR%\
3641

3742
build_script:
38-
- cd
39-
- cd %APPVEYOR_BUILD_FOLDER%\..\..
4043
- '"%VS140COMNTOOLS%\VsDevCmd" %BUILD_PLATFORM%'
4144
- set
4245
- echo Building PHP [%PHP_VERSION%]
4346
- '%PHP_SDK%\bin\phpsdk_setvars'
4447
- buildconf
45-
- configure --disable-all --enable-cli --with-v8js
48+
- configure --disable-all --enable-cli --with-v8js %CONFIGURE_EXTRA%
4649
- nmake
4750

4851
after_build:
49-
- cd %APPVEYOR_BUILD_FOLDER%\..\..\Release_TS
50-
- 7z a v8js_vc14_php7_ts.zip icu*.dll v8.dll php_v8js.dll
51-
- ps: Push-AppveyorArtifact v8js_vc14_php7_ts.zip
52+
- cd %OUTDIR%
53+
- 7z a %ARTIFACT_NAME% icu*.dll v8.dll php_v8js.dll
54+
- ps: Push-AppveyorArtifact $env:ARTIFACT_NAME
5255

5356
test_script:
54-
- cd %APPVEYOR_BUILD_FOLDER%\..\..
57+
- cd c:\projects\php-sdk\v8js-ci\vc14\x86\php-%PHP_VERSION%
5558
- set NO_INTERACTION=1
5659
- set TEST_PHP_JUNIT=junit.xml
5760
- set REPORT_EXIT_STATUS=1
58-
- Release_TS\php.exe run-tests.php -p Release_TS\php.exe ext/v8js/tests/ -d extension=php_v8js.dll -d extension_dir=Release_TS\
61+
- "%OUTDIR%\\php.exe run-tests.php -p %OUTDIR%\\php.exe ext/v8js/tests/ -d extension=php_v8js.dll -d extension_dir=%OUTDIR%\\"
5962

6063
on_finish:
61-
- cd %APPVEYOR_BUILD_FOLDER%\..\..
64+
- cd c:\projects\php-sdk\v8js-ci\vc14\x86\php-%PHP_VERSION%
6265
- ps: |
6366
# upload results to AppVeyor
6467
$wc = New-Object 'System.Net.WebClient'
@@ -71,7 +74,7 @@ deploy:
7174
secure: N+jqdcvCOzqfrwL7ClIvcd9TkmQe9dghJwZMjLYtv7syVW5c4EU9YrqUbUUGmZ04
7275
bucket: win-phpv8
7376
set_public: true
74-
artifact: v8js_vc14_php7_ts.zip
77+
artifact: "*.zip"
7578
on:
7679
branch: php7
7780

0 commit comments

Comments
 (0)