This repository has been archived by the owner on Apr 30, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor_amqp.yml
74 lines (46 loc) · 1.91 KB
/
appveyor_amqp.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
version: 1.0.{build}
build:
verbosity: normal
install:
- cmd: cinst wget
- cmd: mkdir C:\projects\php-win\build
environment:
php_ver: 7.3.0
amqp_ver: v1.9.3
matrix:
- GENERATOR: Visual Studio 12 Win64
BITS: 64
- GENERATOR: Visual Studio 12
BITS: 32
configuration:
- Debug
- Release
build_script:
- cmd: >-
"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall" amd64
wget http://windows.php.net/downloads/php-sdk/php-sdk-binary-tools-20110915.zip
7z x -y php-sdk-binary-tools-20110915.zip -oC:\projects\php-sdk
C:\projects\php-sdk\bin\phpsdk_setvars.bat
git clone -q --branch=PHP-%php_ver% https://github.com/php/php-src C:\projects\php-src
mkdir C:\projects\php-src\ext\amqp
git clone https://github.com/pdezwart/php-amqp.git C:\projects\php-src\ext\amqp
cd C:\projects\php-src\ext\amqp
git checkout tags/%amqp_ver% C:\projects\php-src\ext\amqp
cd %APPVEYOR_BUILD_FOLDER%
wget http://windows.php.net/downloads/php-sdk/deps-7.0-vc14-%BUILD_PLATFORM%.7z
7z x -y deps-7.0-vc14-%BUILD_PLATFORM%.7z -oC:\projects\php-src
dir C:\projects\php-src
copy %APPVEYOR_BUILD_FOLDER%\include\*.h C:\projects\php-src\deps\include\
copy %APPVEYOR_BUILD_FOLDER%\lib\*.lib C:\projects\php-src\deps\lib\
cd C:\projects\php-src
buildconf.bat
configure.bat --help | findstr amqp
configure.bat --help | findstr redis
configure.bat --disable-all --disable-zts --with-openssl --enable-cli --enable-session --with-amqp=shared --with-config-file-scan-dir=C:\projects\php-win\build\modules.d --with-prefix=C:\projects\php-win\build --with-php-build=deps
nmake
nmake install
copy php.ini-development C:\projects\php-win\build\php.ini
cd %APPVEYOR_BUILD_FOLDER%\build\ext
rename php_amqp.dll php_amqp-%amqp_ver%-7.1-vc14-nts-%BUILD_PLATFORM%.dll
artifacts:
- path: 'build/ext/*.dll'