Add continuous test for php7.4 on mac (#7153)
This commit is contained in:
parent
e8016753e3
commit
85219578fa
11
kokoro/macos/php7.4_mac/build.sh
Executable file
11
kokoro/macos/php7.4_mac/build.sh
Executable file
@ -0,0 +1,11 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
#
|
||||||
|
# Build file to set up and run tests
|
||||||
|
|
||||||
|
# Change to repo root
|
||||||
|
cd $(dirname $0)/../../..
|
||||||
|
|
||||||
|
# Prepare worker environment to run tests
|
||||||
|
source kokoro/macos/prepare_build_macos_rc
|
||||||
|
|
||||||
|
./tests.sh php7.4_mac
|
5
kokoro/macos/php7.4_mac/continuous.cfg
Normal file
5
kokoro/macos/php7.4_mac/continuous.cfg
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
# Config file for running tests in Kokoro
|
||||||
|
|
||||||
|
# Location of the build script in repository
|
||||||
|
build_file: "protobuf/kokoro/macos/php7.4_mac/build.sh"
|
||||||
|
timeout_mins: 1440
|
5
kokoro/macos/php7.4_mac/presubmit.cfg
Normal file
5
kokoro/macos/php7.4_mac/presubmit.cfg
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
# Config file for running tests in Kokoro
|
||||||
|
|
||||||
|
# Location of the build script in repository
|
||||||
|
build_file: "protobuf/kokoro/macos/php7.4_mac/build.sh"
|
||||||
|
timeout_mins: 1440
|
24
tests.sh
24
tests.sh
@ -715,6 +715,30 @@ build_php7.0_mac() {
|
|||||||
popd
|
popd
|
||||||
}
|
}
|
||||||
|
|
||||||
|
build_php7.4_mac() {
|
||||||
|
generate_php_test_proto
|
||||||
|
# Install PHP
|
||||||
|
curl -s https://php-osx.liip.ch/install.sh | bash -s 7.4
|
||||||
|
PHP_FOLDER=`find /usr/local -type d -name "php7-7.4*"` # The folder name may change upon time
|
||||||
|
export PATH="$PHP_FOLDER/bin:$PATH"
|
||||||
|
|
||||||
|
# Install phpunit
|
||||||
|
curl https://phar.phpunit.de/phpunit-8.phar -L -o phpunit.phar
|
||||||
|
chmod +x phpunit.phar
|
||||||
|
sudo mv phpunit.phar /usr/local/bin/phpunit
|
||||||
|
|
||||||
|
# Install valgrind
|
||||||
|
echo "#! /bin/bash" > valgrind
|
||||||
|
chmod ug+x valgrind
|
||||||
|
sudo mv valgrind /usr/local/bin/valgrind
|
||||||
|
|
||||||
|
# Test
|
||||||
|
cd php/tests && /bin/bash ./test.sh && cd ../..
|
||||||
|
pushd conformance
|
||||||
|
make test_php_c
|
||||||
|
popd
|
||||||
|
}
|
||||||
|
|
||||||
build_php_compatibility() {
|
build_php_compatibility() {
|
||||||
internal_build_cpp
|
internal_build_cpp
|
||||||
php/tests/compatibility_test.sh $LAST_RELEASED
|
php/tests/compatibility_test.sh $LAST_RELEASED
|
||||||
|
Loading…
Reference in New Issue
Block a user