Skip to content

Commit

Permalink
Fixing mac php tests (#10523)
Browse files Browse the repository at this point in the history
* Manually run brew cleanup and initialize php

* Add debug loggin for visibility

* Allow underscores in php folder name

* Add logging to php tests

* Add tracing

* Only use the latest installation of php
  • Loading branch information
mkruskal-google authored Sep 9, 2022
1 parent 4efbcc4 commit 687fbff
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion kokoro/macos/php74/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@ cd $(dirname $0)/../../..
source kokoro/macos/prepare_build_macos_rc

# Install Dependencies
brew cleanup
brew install coreutils [email protected]

# Configure path
PHP_FOLDER=$(find $HOMEBREW_PREFIX -type d -regex ".*php.*/7.4.[0-9]*")
PHP_FOLDER=$(find $HOMEBREW_PREFIX -type d -regex ".*php.*/7.4.[0-9_.]*" | sort -n | tail -n 1)
test ! -z "$PHP_FOLDER"
export PATH="$PHP_FOLDER/bin:$PATH"

Expand Down
3 changes: 2 additions & 1 deletion kokoro/macos/php80/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@ cd $(dirname $0)/../../..
source kokoro/macos/prepare_build_macos_rc

# Install Dependencies
brew cleanup
brew install coreutils [email protected]

# Configure path
PHP_FOLDER=$(find $HOMEBREW_PREFIX -type d -regex ".*php.*/8.0.[0-9]*")
PHP_FOLDER=$(find $HOMEBREW_PREFIX -type d -regex ".*php.*/8.0.[0-9_.]*" | sort -n | tail -n 1)
test ! -z "$PHP_FOLDER"
export PATH="$PHP_FOLDER/bin:$PATH"

Expand Down
2 changes: 1 addition & 1 deletion php/tests/compile_extension.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

set -e
set -ex

cd $(dirname $0)/..

Expand Down

0 comments on commit 687fbff

Please sign in to comment.