source: src/router/php7/appveyor/build_task.bat @ 31874

Last change on this file since 31874 was 31874, checked in by brainslayer, 2 months ago

update php

File size: 1.4 KB
Line 
1@echo off
2
3if "%APPVEYOR%" equ "True" rmdir /s /q C:\cygwin >NUL 2>NUL
4if %errorlevel% neq 0 exit /b 3
5if "%APPVEYOR%" equ "True" rmdir /s /q C:\mingw >NUL 2>NUL
6if %errorlevel% neq 0 exit /b 3
7if "%APPVEYOR%" equ "True" rmdir /s /q C:\mingw-w64 >NUL 2>NUL
8if %errorlevel% neq 0 exit /b 3
9
10cd /D %APPVEYOR_BUILD_FOLDER%
11if %errorlevel% neq 0 exit /b 3
12
13if /i "%APPVEYOR_REPO_BRANCH:~0,4%" equ "php-" (
14        set BRANCH=%APPVEYOR_REPO_BRANCH:~4,3%
15) else (
16        set BRANCH=master
17)
18set STABILITY=staging
19set DEPS_DIR=%PHP_BUILD_CACHE_BASE_DIR%\deps-%BRANCH%-%PHP_SDK_VC%-%PHP_SDK_ARCH%
20rem SDK is cached, deps info is cached as well
21echo Updating dependencies in %DEPS_DIR%
22call phpsdk_deps --update --branch %BRANCH% --stability %STABILITY% --deps %DEPS_DIR%
23if %errorlevel% neq 0 exit /b 3
24
25call buildconf.bat --force
26if %errorlevel% neq 0 exit /b 3
27
28if "%THREAD_SAFE%" equ "0" set ADD_CONF=--disable-zts
29
30set EXT_EXCLUDE_FROM_TEST=snmp,oci8_12c,pdo_oci,pdo_odbc,odbc,pdo_firebird,interbase,ldap,imap,dba
31if "%OPCACHE%" equ "0" set EXT_EXCLUDE_FROM_TEST=%EXT_EXCLUDE_FROM_TEST%,opcache
32
33call configure.bat ^
34        --enable-snapshot-build ^
35        --disable-debug-pack ^
36        --with-mcrypt=shared ^
37        --enable-com-dotnet=shared ^
38        --without-analyzer ^
39        --enable-object-out-dir=%PHP_BUILD_OBJ_DIR% ^
40        --with-php-build=%DEPS_DIR% ^
41        %ADD_CONF% ^
42        --with-test-ini-ext-exclude=%EXT_EXCLUDE_FROM_TEST%
43if %errorlevel% neq 0 exit /b 3
44
45nmake /NOLOGO
46if %errorlevel% neq 0 exit /b 3
47
48exit /b 0
49
Note: See TracBrowser for help on using the repository browser.