aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests.sh
diff options
context:
space:
mode:
authorGravatar Bo Yang <teboring@google.com>2016-10-03 21:59:58 +0000
committerGravatar Bo Yang <teboring@google.com>2016-10-10 11:44:54 -0700
commit34cdaf4c36cee85765d48a8b857be75014f3a8d0 (patch)
tree19c8dd5e9b436a0438eeb8fa2ea59bb8c6c76a6f /tests.sh
parentc8bd36e5b91fa7cc3ca56abfd33db13da8ce3077 (diff)
Add travis test on Mac for php.
Diffstat (limited to 'tests.sh')
-rwxr-xr-xtests.sh28
1 files changed, 19 insertions, 9 deletions
diff --git a/tests.sh b/tests.sh
index f0d2abc9..c3c66aa4 100755
--- a/tests.sh
+++ b/tests.sh
@@ -347,11 +347,6 @@ use_php() {
cp "/usr/bin/phpize$VERSION" $PHPIZE
}
-build_php5.5_c() {
- use_php 5.5
- cd php/tests && /bin/bash ./test.sh && cd ../..
-}
-
build_php5.5() {
use_php 5.5
rm -rf vendor
@@ -359,8 +354,18 @@ build_php5.5() {
./vendor/bin/phpunit
}
-build_php5.6_c() {
- use_php 5.6
+build_php5.5_c() {
+ use_php 5.5
+ cd php/tests && /bin/bash ./test.sh && cd ../..
+}
+build_php5.5_c() {
+ use_php 5.5
+ 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 ../..
}
@@ -371,8 +376,8 @@ build_php5.6() {
./vendor/bin/phpunit
}
-build_php7.0_c() {
- use_php 7.0
+build_php5.6_c() {
+ use_php 5.6
cd php/tests && /bin/bash ./test.sh && cd ../..
}
@@ -383,6 +388,11 @@ build_php7.0() {
./vendor/bin/phpunit
}
+build_php7.0_c() {
+ use_php 7.0
+ cd php/tests && /bin/bash ./test.sh && cd ../..
+}
+
build_php_all() {
build_php5.5
build_php5.6