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

Last change on this file since 31874 was 31874, checked in by brainslayer, 6 weeks ago

update php

File size: 1.0 KB
Line 
1@echo off
2
3set SDK_REMOTE=https://github.com/OSTC/php-sdk-binary-tools.git
4set SDK_BRANCH=%PHP_BUILD_SDK_BRANCH%
5
6if not exist "%PHP_BUILD_CACHE_BASE_DIR%" (
7        echo Creating %PHP_BUILD_CACHE_BASE_DIR%
8        mkdir "%PHP_BUILD_CACHE_BASE_DIR%"
9)
10
11if not exist "%PHP_BUILD_OBJ_DIR%" (
12        echo Creating %PHP_BUILD_OBJ_DIR%
13        mkdir "%PHP_BUILD_OBJ_DIR%"
14)
15
16if not exist "%PHP_BUILD_CACHE_SDK_DIR%" (
17        echo Cloning remote SDK repository
18        git clone --branch %SDK_BRANCH% %SDK_REMOTE% "%PHP_BUILD_CACHE_SDK_DIR%" 2>&1
19) else (
20        echo Fetching remote SDK repository
21        git --git-dir="%PHP_BUILD_CACHE_SDK_DIR%\.git" --work-tree="%PHP_BUILD_CACHE_SDK_DIR%" fetch --prune origin 2>&1
22        echo Checkout SDK repository branch
23        git --git-dir="%PHP_BUILD_CACHE_SDK_DIR%\.git" --work-tree="%PHP_BUILD_CACHE_SDK_DIR%" checkout --force %SDK_BRANCH%
24)
25
26set SDK_RUNNER=%PHP_BUILD_CACHE_SDK_DIR%\phpsdk-vc14-%PLATFORM%.bat
27if not exist "%SDK_RUNNER%" (
28        echo "%SDK_RUNNER%" doesn't exist
29        exit /b 3
30)
31
32call %SDK_RUNNER% -t %APPVEYOR_BUILD_FOLDER%\appveyor\build_task.bat
33
Note: See TracBrowser for help on using the repository browser.