Skip to content

Commit

Permalink
Added again the 5.3 codeception and created a script to distinguish b…
Browse files Browse the repository at this point in the history
…etween PHP versions
  • Loading branch information
niden committed Sep 5, 2014
1 parent 1bb2976 commit 2d82c3c
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
3 changes: 1 addition & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ before_script:
- ulimit -c unlimited || true

script:
- ZEND_DONT_UNLOAD_MODULES=1 $(phpenv which php) ./unit-tests/ci/phpunit.php --debug -c unit-tests/phpunit.xml --testsuite=stable
- '[[ "$TRAVIS_PHP_VERSION" == "5.4" ]] || [[ "$TRAVIS_PHP_VERSION" == "5.5" ]] || [[ "$TRAVIS_PHP_VERSION" == "5.6" ]] || ZEND_DONT_UNLOAD_MODULES=1 $(phpenv which php) codecept run'
- ./runTests.sh

after_failure:
- sudo apt-get -qq install gdb
Expand Down
Binary file added codecept53.phar
Binary file not shown.
12 changes: 12 additions & 0 deletions runTests.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/sh

ZEND_DONT_UNLOAD_MODULES=1 $(phpenv which php) ./unit-tests/ci/phpunit.php --debug -c unit-tests/phpunit.xml --testsuite=stable

if [ "$TRAVIS_PHP_VERSION" == "5.3" ] || [ "$TRAVIS_PHP_VERSION" == "5.3.3" ]
then
$(phpenv which php) codecept53.phar build
ZEND_DONT_UNLOAD_MODULES=1 $(phpenv which php) codecept53.phar run
else
$(phpenv which php) codecept.phar build
ZEND_DONT_UNLOAD_MODULES=1 $(phpenv which php) codecept.phar run
fi

0 comments on commit 2d82c3c

Please sign in to comment.