aboutsummaryrefslogtreecommitdiff
path: root/tests.sh
diff options
context:
space:
mode:
authorBo Yang <paulyang1211@gmail.com>2016-10-05 18:28:13 -0700
committerBo Yang <teboring@google.com>2016-10-10 11:44:54 -0700
commit63448e6059ee5e7b123e0d185e70c1df1d294bd8 (patch)
tree0ae4e5d5f68a5199d3594b972446a6566f4abc33 /tests.sh
parent4f3d20a500e75ef47004986fece3db20ddeee43f (diff)
downloadprotobuf-63448e6059ee5e7b123e0d185e70c1df1d294bd8.tar.gz
protobuf-63448e6059ee5e7b123e0d185e70c1df1d294bd8.tar.bz2
protobuf-63448e6059ee5e7b123e0d185e70c1df1d294bd8.zip
Fix compile error for php on Mac.
Diffstat (limited to 'tests.sh')
-rwxr-xr-xtests.sh25
1 files changed, 19 insertions, 6 deletions
diff --git a/tests.sh b/tests.sh
index 5823bff5..a497f1d2 100755
--- a/tests.sh
+++ b/tests.sh
@@ -369,12 +369,6 @@ build_php5.5_c() {
cd php/tests && /bin/bash ./test.sh && cd ../..
}
-build_php5.5_mac() {
- curl -s https://php-osx.liip.ch/install.sh | bash -s 5.5
- export PATH="/usr/local/php5-5.5.38-20160831-100002/bin:$PATH"
- cd php/tests && /bin/bash ./test.sh && cd ../..
-}
-
build_php5.5_zts_c() {
use_php_zts 5.5
wget https://phar.phpunit.de/phpunit-old.phar -O /usr/bin/phpunit
@@ -393,6 +387,25 @@ build_php5.6_c() {
cd php/tests && /bin/bash ./test.sh && cd ../..
}
+build_php5.6_mac() {
+ # Install PHP
+ curl -s https://php-osx.liip.ch/install.sh | bash -s 5.6
+ export PATH="/usr/local/php5-5.6.25-20160831-101628/bin:$PATH"
+
+ # Install phpunit
+ curl https://phar.phpunit.de/phpunit.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 ../..
+}
+
build_php7.0() {
use_php 7.0
rm -rf vendor