Fixing mac php tests (#10523)

* 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
pull/10514/head
Mike Kruskal 3 years ago committed by GitHub
parent 4efbcc4460
commit 687fbffd9b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      kokoro/macos/php74/build.sh
  2. 3
      kokoro/macos/php80/build.sh
  3. 2
      php/tests/compile_extension.sh

@ -9,10 +9,11 @@ cd $(dirname $0)/../../..
source kokoro/macos/prepare_build_macos_rc source kokoro/macos/prepare_build_macos_rc
# Install Dependencies # Install Dependencies
brew cleanup
brew install coreutils php@7.4 brew install coreutils php@7.4
# Configure path # 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" test ! -z "$PHP_FOLDER"
export PATH="$PHP_FOLDER/bin:$PATH" export PATH="$PHP_FOLDER/bin:$PATH"

@ -9,10 +9,11 @@ cd $(dirname $0)/../../..
source kokoro/macos/prepare_build_macos_rc source kokoro/macos/prepare_build_macos_rc
# Install Dependencies # Install Dependencies
brew cleanup
brew install coreutils php@8.0 brew install coreutils php@8.0
# Configure path # 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" test ! -z "$PHP_FOLDER"
export PATH="$PHP_FOLDER/bin:$PATH" export PATH="$PHP_FOLDER/bin:$PATH"

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
set -e set -ex
cd $(dirname $0)/.. cd $(dirname $0)/..

Loading…
Cancel
Save