aboutsummaryrefslogtreecommitdiff
path: root/tests.sh
diff options
context:
space:
mode:
authorPaul Yang <TeBoring@users.noreply.github.com>2017-05-10 15:59:59 -0700
committerGitHub <noreply@github.com>2017-05-10 15:59:59 -0700
commit22319315df18526277873058f79cf69e77d8b4a2 (patch)
tree0857794e9aa893a0699b911d9038304743fa0f9e /tests.sh
parentc2154e124dfe0dc80b563568e2be4c599120a718 (diff)
downloadprotobuf-22319315df18526277873058f79cf69e77d8b4a2.tar.gz
protobuf-22319315df18526277873058f79cf69e77d8b4a2.tar.bz2
protobuf-22319315df18526277873058f79cf69e77d8b4a2.zip
Fix c extension for php7.1. (#3077)
Diffstat (limited to 'tests.sh')
-rwxr-xr-xtests.sh37
1 files changed, 37 insertions, 0 deletions
diff --git a/tests.sh b/tests.sh
index edb37da7..6dc277df 100755
--- a/tests.sh
+++ b/tests.sh
@@ -545,16 +545,51 @@ build_php7.0_mac() {
popd
}
+build_php7.1() {
+ use_php 7.1
+ pushd php
+ rm -rf vendor
+ cp -r /usr/local/vendor-7.1 vendor
+ wget https://phar.phpunit.de/phpunit-5.6.0.phar -O /usr/bin/phpunit
+ phpunit
+ popd
+ pushd conformance
+ # TODO(teboring): Add it back
+ # make test_php
+ popd
+}
+
+build_php7.1_c() {
+ use_php 7.1
+ wget https://phar.phpunit.de/phpunit-5.6.0.phar -O /usr/bin/phpunit
+ cd php/tests && /bin/bash ./test.sh && cd ../..
+ pushd conformance
+ # make test_php_c
+ popd
+}
+
+build_php7.1_zts_c() {
+ use_php_zts 7.1
+ wget https://phar.phpunit.de/phpunit-5.6.0.phar -O /usr/bin/phpunit
+ cd php/tests && /bin/bash ./test.sh && cd ../..
+ pushd conformance
+ # make test_php_c
+ popd
+}
+
build_php_all() {
build_php5.5
build_php5.6
build_php7.0
+ build_php7.1
build_php5.5_c
build_php5.6_c
build_php7.0_c
+ build_php7.1_c
build_php5.5_zts_c
build_php5.6_zts_c
build_php7.0_zts_c
+ build_php7.1_zts_c
}
# Note: travis currently does not support testing more than one language so the
@@ -595,6 +630,8 @@ Usage: $0 { cpp |
php5.6_c |
php7.0 |
php7.0_c |
+ php7.1 |
+ php7.1_c |
php_all)
"
exit 1