Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
P
protobuf
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
protobuf
Commits
85219578
Unverified
Commit
85219578
authored
Jan 30, 2020
by
Paul Yang
Committed by
GitHub
Jan 30, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add continuous test for php7.4 on mac (#7153)
parent
e8016753
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
45 additions
and
0 deletions
+45
-0
build.sh
kokoro/macos/php7.4_mac/build.sh
+11
-0
continuous.cfg
kokoro/macos/php7.4_mac/continuous.cfg
+5
-0
presubmit.cfg
kokoro/macos/php7.4_mac/presubmit.cfg
+5
-0
tests.sh
tests.sh
+24
-0
No files found.
kokoro/macos/php7.4_mac/build.sh
0 → 100755
View file @
85219578
#!/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
kokoro/macos/php7.4_mac/continuous.cfg
0 → 100644
View file @
85219578
# 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
kokoro/macos/php7.4_mac/presubmit.cfg
0 → 100644
View file @
85219578
# 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
tests.sh
View file @
85219578
...
...
@@ -715,6 +715,30 @@ build_php7.0_mac() {
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
()
{
internal_build_cpp
php/tests/compatibility_test.sh
$LAST_RELEASED
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment