-
Notifications
You must be signed in to change notification settings - Fork 15.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
88f5230
commit 393448a
Showing
5 changed files
with
13 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,15 +9,16 @@ cd $(dirname $0)/../../.. | |
source kokoro/macos/prepare_build_macos_rc | ||
|
||
# Install PHP + Composer | ||
brew install [email protected] composer pcre2 | ||
brew install --overwrite [email protected] composer | ||
|
||
# Configure path | ||
PHP_FOLDER=$(find /opt/homebrew -type d -regex ".*php.*/7.4.[0-9]*") | ||
HOMEBREW_PREFIX=$(brew --prefix) | ||
PHP_FOLDER=$(find $HOMEBREW_PREFIX -type d -regex ".*php.*/7.4.[0-9]*") | ||
test ! -z "$PHP_FOLDER" | ||
export PATH="$PHP_FOLDER/bin:$PATH" | ||
|
||
# Fix missing pcre2.h in homebrew's PHP | ||
ln -s $(find /opt/homebrew/Cellar/pcre2 -name pcre2.h) $PHP_FOLDER/include/php/ext/pcre/pcre2.h | ||
#ln -s $(find $HOMEBREW_PREFIX/Cellar/pcre2 -name pcre2.h) $PHP_FOLDER/include/php/ext/pcre/pcre2.h | ||
|
||
# Test | ||
./tests.sh php_mac |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,15 +9,16 @@ cd $(dirname $0)/../../.. | |
source kokoro/macos/prepare_build_macos_rc | ||
|
||
# Install PHP + Composer | ||
brew install [email protected] composer pcre2 | ||
brew install --overwrite [email protected] composer | ||
|
||
# Configure path | ||
PHP_FOLDER=$(find /opt/homebrew -type d -regex ".*php.*/8.0.[0-9]*") | ||
HOMEBREW_PREFIX=$(brew --prefix) | ||
PHP_FOLDER=$(find $HOMEBREW_PREFIX -type d -regex ".*php.*/8.0.[0-9]*") | ||
test ! -z "$PHP_FOLDER" | ||
export PATH="$PHP_FOLDER/bin:$PATH" | ||
|
||
# Fix missing pcre2.h in homebrew's PHP | ||
ln -s $(find /opt/homebrew/Cellar/pcre2 -name pcre2.h) $PHP_FOLDER/include/php/ext/pcre/pcre2.h | ||
ln -s $(find $HOMEBREW_PREFIX/Cellar/pcre2 -name pcre2.h) $PHP_FOLDER/include/php/ext/pcre/pcre2.h | ||
|
||
# Test | ||
./tests.sh php_mac |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# Config file for running tests in Kokoro | ||
|
||
# Location of the build script in repository | ||
build_file: "protobuf/kokoro/macos/php7.3_mac/build.sh" | ||
build_file: "protobuf/kokoro/macos/php80/build.sh" | ||
timeout_mins: 1440 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# Config file for running tests in Kokoro | ||
|
||
# Location of the build script in repository | ||
build_file: "protobuf/kokoro/macos/php7.3_mac/build.sh" | ||
build_file: "protobuf/kokoro/macos/php80/build.sh" | ||
timeout_mins: 1440 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters