Commit 858db7a2 authored by Bo Yang's avatar Bo Yang

Add travis test on Mac for php.

parent bcb32c0b
...@@ -30,6 +30,7 @@ env: ...@@ -30,6 +30,7 @@ env:
- CONFIG=ruby21 - CONFIG=ruby21
- CONFIG=ruby22 - CONFIG=ruby22
- CONFIG=jruby - CONFIG=jruby
- CONFIG=php5.5_mac
matrix: matrix:
exclude: exclude:
# It's nontrivial to programmatically install a new JDK from the command # It's nontrivial to programmatically install a new JDK from the command
......
...@@ -347,11 +347,6 @@ use_php() { ...@@ -347,11 +347,6 @@ use_php() {
cp "/usr/bin/phpize$VERSION" $PHPIZE 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() { build_php5.5() {
use_php 5.5 use_php 5.5
rm -rf vendor rm -rf vendor
...@@ -359,8 +354,18 @@ build_php5.5() { ...@@ -359,8 +354,18 @@ build_php5.5() {
./vendor/bin/phpunit ./vendor/bin/phpunit
} }
build_php5.6_c() { build_php5.5_c() {
use_php 5.6 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 ../.. cd php/tests && /bin/bash ./test.sh && cd ../..
} }
...@@ -371,8 +376,8 @@ build_php5.6() { ...@@ -371,8 +376,8 @@ build_php5.6() {
./vendor/bin/phpunit ./vendor/bin/phpunit
} }
build_php7.0_c() { build_php5.6_c() {
use_php 7.0 use_php 5.6
cd php/tests && /bin/bash ./test.sh && cd ../.. cd php/tests && /bin/bash ./test.sh && cd ../..
} }
...@@ -383,6 +388,11 @@ build_php7.0() { ...@@ -383,6 +388,11 @@ build_php7.0() {
./vendor/bin/phpunit ./vendor/bin/phpunit
} }
build_php7.0_c() {
use_php 7.0
cd php/tests && /bin/bash ./test.sh && cd ../..
}
build_php_all() { build_php_all() {
build_php5.5 build_php5.5
build_php5.6 build_php5.6
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment