mirror of
https://github.com/php/web-rmtools.git
synced 2026-04-28 03:23:21 +02:00
4f511accbff62550dfd59bc2b45bb06ec307abd4
PHP RMTOOLS
Tools PHP release and snapshot build automation
License
The PHP RMTOOLS itself is licensed under the BSD 2-Clause license. With the usage of the other tools, you accept the respective licenses.
Overview
Requirements
- Visual Studio
- PHP-SDK
Usage
NOTE: All the paths in the usage exampled are on drive C: for simplicity. Locations of PHP SDK and RMTOOLS are customizable and are not bound to a firm path on the system. All the path configuration is editable in the corresponding branch ini files under rmtools\data\config\branch
Preparing
- install Git, alternatively - fetch the latest tags for RMTOOLS and PHP SDK
md c:\php-snap-buildcd c:\php-snap-buildgit clone https://github.com/OSTC/php-sdk-binary-tools.git --branch new_binary_tools php-sdkgit clone https://github.com/OSTC/web-rmtools.git --branch new_sdk_compliance rmtoolsmd c:\php-snap-build\obj-x64, or alternatively similar tomklink /d obj-x64 d:\tmp-obj-x64md c:\php-snap-build\obj, or alternatively similar tomklink /d obj d:\tmp-objmd C:\php-snap-build\snap_master\vc14\x64md C:\php-snap-build\snap_master\vc14\x86- copy C:\php-snap-build\rmtools\data\config\credentials_ftps.php-dist to C:\php-snap-build\rmtools\data\config\credentials_ftps.php, set the appropriate values
Buiding
With this configuration, for example for a 64-bit build
- the build dir is C:\php-snap-build\snap_master\vc14\x64
- the object dir is C:\php-snap-build\obj-x64
- the package dir is C:\php-snap-build\obj-x64
- run
c:\php-snap-build\php-sdk\phpsdk-vc14-x64.bat -t c:\php-snap\build\bin\snapshot_task.bat --task-args "phpmaster all"
To make a x86 build, the corresponding starter script from the PHP SDK needs to be used.
Description
Languages
PHP
86.7%
Batchfile
13%
CSS
0.3%