File tree Expand file tree Collapse file tree 2 files changed +11
-9
lines changed Expand file tree Collapse file tree 2 files changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -53,18 +53,20 @@ export PULL_REQUEST_NUMBER=$KOKORO_GITHUB_PULL_REQUEST_NUMBER
53
53
# Load phpbrew shell
54
54
source /root/.phpbrew/bashrc
55
55
56
- # decide which php version to use
57
- if [ -z " ${GOOGLE_ALT_PROJECT_ID} " ]; then
58
- # By default use PHP 7.4
59
- phpbrew switch $( phpbrew list | grep 7.4)
60
- elif [ " 3" -eq ${GOOGLE_ALT_PROJECT_ID: -1} ]; then
61
- phpbrew switch $( phpbrew list | grep 7.3)
56
+ # Decide which php version to use.
57
+ if [ " 3" -eq ${GOOGLE_ALT_PROJECT_ID: -1} ]; then
58
+ PHP_VERSION=" 7.3"
62
59
elif [ " 1" -eq ${GOOGLE_ALT_PROJECT_ID: -1} ]; then
63
- phpbrew switch $( phpbrew list | grep 7.4)
60
+ PHP_VERSION= " 7.4"
64
61
elif [ " 2" -eq ${GOOGLE_ALT_PROJECT_ID: -1} ]; then
65
- phpbrew switch $( phpbrew list | grep 8.0)
62
+ PHP_VERSION=" 8.0"
63
+ else
64
+ # By default use PHP 7.4
65
+ PHP_VERSION=" 7.4"
66
66
fi
67
67
68
+ phpbrew switch $( phpbrew list | grep $PHP_VERSION | cut -c 2-)
69
+
68
70
# If we are running REST tests, disable gRPC
69
71
if [ " ${RUN_REST_TESTS_ONLY} " = " true" ]; then
70
72
phpbrew ext disable grpc
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ DIR="${1:-$PROJECT_ROOT}"
22
22
cd $PROJECT_ROOT
23
23
24
24
# install local version of php-cs-fixer 3.0 from composer.json
25
- composer -q install -d testing/
25
+ composer install -d testing/
26
26
27
27
# run php-cs-fixer
28
28
PHP_CS_FIXER=" php-cs-fixer"
You can’t perform that action at this time.
0 commit comments