Skip to content

Commit

Permalink
Add test for php zts build.
Browse files Browse the repository at this point in the history
  • Loading branch information
TeBoring authored and Dan Dees committed Nov 5, 2016
1 parent d22d4e6 commit 097bcb9
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -347,17 +347,23 @@ use_php() {
cp "/usr/bin/phpize$VERSION" $PHPIZE
}

use_php_zts() {
VERSION=$1
PHP=`which php`
PHP_CONFIG=`which php-config`
PHPIZE=`which phpize`
ln -sfn "/usr/local/php-${VERSION}-zts/bin/php" $PHP
ln -sfn "/usr/local/php-${VERSION}-zts/bin/php-config" $PHP_CONFIG
ln -sfn "/usr/local/php-${VERSION}-zts/bin/phpize" $PHPIZE
}

build_php5.5() {
use_php 5.5
rm -rf vendor
cp -r /usr/local/vendor-5.5 vendor
./vendor/bin/phpunit
}

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 ../..
Expand All @@ -369,6 +375,11 @@ build_php5.5_mac() {
cd php/tests && /bin/bash ./test.sh && cd ../..
}

build_php5.5_zts_c() {
use_php_zts 5.5
cd php/tests && /bin/bash ./test.sh && cd ../..
}

build_php5.6() {
use_php 5.6
rm -rf vendor
Expand Down Expand Up @@ -400,6 +411,7 @@ build_php_all() {
build_php5.5_c
build_php5.6_c
# build_php7.0_c
build_php5.5_zts_c
}

# Note: travis currently does not support testing more than one language so the
Expand Down

0 comments on commit 097bcb9

Please sign in to comment.