Skip to content

Commit

Permalink
Further cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
mkruskal-google committed Jul 20, 2022
1 parent 4715af5 commit 9debee7
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 14 deletions.
4 changes: 0 additions & 4 deletions kokoro/macos/php74/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,9 @@ source kokoro/macos/prepare_build_macos_rc
brew install coreutils [email protected]

# Configure path
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 $HOMEBREW_PREFIX/Cellar/pcre2 -name pcre2.h) $PHP_FOLDER/include/php/ext/pcre/pcre2.h

# Test
./tests.sh php_mac
4 changes: 0 additions & 4 deletions kokoro/macos/php80/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,9 @@ source kokoro/macos/prepare_build_macos_rc
brew install coreutils [email protected]

# Configure path
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 $HOMEBREW_PREFIX/Cellar/pcre2 -name pcre2.h) $PHP_FOLDER/include/php/ext/pcre/pcre2.h

# Test
./tests.sh php_mac
18 changes: 12 additions & 6 deletions kokoro/macos/prepare_build_macos_rc
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@

set -eux

export HOMEBREW_PREFIX=$(brew --prefix)

##
# Select Xcode version

export DEVELOPER_DIR=/Applications/Xcode_13.3.1.app/Contents/Developer
sudo xcode-select -s "${DEVELOPER_DIR}"

Expand All @@ -21,14 +22,19 @@ if [[ "${KOKORO_INSTALL_TOX:-}" == "yes" ]] ; then
sudo python3 -m pip install --upgrade pip tox
fi

# "Install" valgrind
##
# Setup RVM
if [[ "${KOKORO_INSTALL_RVM:-}" == "yes" ]] ; then
git config --global --add safe.directory $HOMEBREW_PREFIX/Library/Taps/homebrew/homebrew-cask
git config --global --add safe.directory $HOMEBREW_PREFIX/Library/Taps/homebrew/homebrew-core
git config --global --add safe.directory $HOMEBREW_PREFIX/Library/Taps/homebrew/homebrew-services
sudo chown -R $(whoami) $HOME/.rvm/
fi

# "Install" valgrind if it doesn't exist
##
if [ ! -x "$(command -v valgrind)" ]; then
echo "#! /bin/bash" > valgrind
chmod ug+x valgrind
sudo mv valgrind /usr/local/bin/valgrind
fi

git config --global --add safe.directory /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core
git config --global --add safe.directory /usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask
sudo chown -R $(whoami) $HOME/.rvm/
1 change: 1 addition & 0 deletions kokoro/macos/ruby25/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
cd $(dirname $0)/../../..

# Prepare worker environment to run tests
KOKORO_INSTALL_RVM=yes
source kokoro/macos/prepare_build_macos_rc

./tests.sh ruby25
1 change: 1 addition & 0 deletions kokoro/macos/ruby26/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
cd $(dirname $0)/../../..

# Prepare worker environment to run tests
KOKORO_INSTALL_RVM=yes
source kokoro/macos/prepare_build_macos_rc

./tests.sh ruby26
1 change: 1 addition & 0 deletions kokoro/macos/ruby27/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
cd $(dirname $0)/../../..

# Prepare worker environment to run tests
KOKORO_INSTALL_RVM=yes
source kokoro/macos/prepare_build_macos_rc

./tests.sh ruby27
1 change: 1 addition & 0 deletions kokoro/macos/ruby30/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
cd $(dirname $0)/../../..

# Prepare worker environment to run tests
KOKORO_INSTALL_RVM=yes
source kokoro/macos/prepare_build_macos_rc

./tests.sh ruby30
1 change: 1 addition & 0 deletions kokoro/macos/ruby31/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
cd $(dirname $0)/../../..

# Prepare worker environment to run tests
KOKORO_INSTALL_RVM=yes
source kokoro/macos/prepare_build_macos_rc

./tests.sh ruby31

0 comments on commit 9debee7

Please sign in to comment.