diff options
author | Bo Yang <paulyang1211@gmail.com> | 2016-10-05 18:28:13 -0700 |
---|---|---|
committer | Bo Yang <teboring@google.com> | 2016-10-10 11:44:54 -0700 |
commit | 63448e6059ee5e7b123e0d185e70c1df1d294bd8 (patch) | |
tree | 0ae4e5d5f68a5199d3594b972446a6566f4abc33 /tests.sh | |
parent | 4f3d20a500e75ef47004986fece3db20ddeee43f (diff) | |
download | protobuf-63448e6059ee5e7b123e0d185e70c1df1d294bd8.tar.gz protobuf-63448e6059ee5e7b123e0d185e70c1df1d294bd8.tar.bz2 protobuf-63448e6059ee5e7b123e0d185e70c1df1d294bd8.zip |
Fix compile error for php on Mac.
Diffstat (limited to 'tests.sh')
-rwxr-xr-x | tests.sh | 25 |
1 files changed, 19 insertions, 6 deletions
@@ -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 |