From d9de36398c9985d573975e89d62b5f83c363492c Mon Sep 17 00:00:00 2001 From: Ben Ramsey Date: Sat, 4 Jun 2022 10:04:16 -0500 Subject: [PATCH] [ci skip] add example build commands to RM documentation --- docs/release-process.md | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/docs/release-process.md b/docs/release-process.md index b73274d028f..bf23f5f3c8d 100644 --- a/docs/release-process.md +++ b/docs/release-process.md @@ -84,6 +84,26 @@ explained at the end of this document in 5. Compile and run `make test`, with and without ZTS, using the right Bison and re2c version (for PHP 7.4, minimum Bison 3.0.0 and re2c 0.13.4 are used). + For example: + + ```sh + # With ZTS + make distclean || \ + ./buildconf --force \ + && ./configure --enable-zts --disable-all --enable-debug --enable-opcache --enable-opcache-jit \ + && make -j$(nproc) \ + && make test TEST_PHP_ARGS=-j$(nproc) \ + && ./sapi/cli/php -v + + # Without ZTS + make distclean || \ + ./buildconf --force \ + && ./configure --disable-all --enable-debug --enable-opcache --enable-opcache-jit \ + && make -j$(nproc) \ + && make test TEST_PHP_ARGS=-j$(nproc) \ + && ./sapi/cli/php -v + ``` + 6. Check `./sapi/cli/php -v` output for version matching. 7. If all is right, commit the changes to the release branch: @@ -207,6 +227,26 @@ explained at the end of this document in 5. Compile and run `make test`, with and without ZTS, using the right Bison and re2c version (for PHP 7.4, minimum Bison 3.0.0 and re2c 0.13.4 are used). + For example: + + ```sh + # With ZTS + make distclean || \ + ./buildconf --force \ + && ./configure --enable-zts --disable-all --enable-debug --enable-opcache --enable-opcache-jit \ + && make -j$(nproc) \ + && make test TEST_PHP_ARGS=-j$(nproc) \ + && ./sapi/cli/php -v + + # Without ZTS + make distclean || \ + ./buildconf --force \ + && ./configure --disable-all --enable-debug --enable-opcache --enable-opcache-jit \ + && make -j$(nproc) \ + && make test TEST_PHP_ARGS=-j$(nproc) \ + && ./sapi/cli/php -v + ``` + 6. Check `./sapi/cli/php -v` output for version matching. 7. Tag the repository with the version e.g. `git tag -u YOURKEYID php-7.4.1`