-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Travis-CI not working with PHP 5.5/5.6 #24
Comments
I've seen a solution somewhere else: |
Uhm, I don't understand what you mean. |
If you open a PR and modify the test's code to output debug data, |
It seems this error is caused by missing propro and raphf extensions (dependencies of pecl_http) |
The propro and raphf extensions are installed by the travis script in the test directory. Otherwise, it would not work for the other version combinations, also. |
Interestingly, this happens only with php 5.5 and 5.6, but not with earlier nor with later versions (I just implemented the travis tests for php 7). I could also never reproduce the issues on my systems, only on travis. |
Try using the more modern Travis instance https://docs.travis-ci.com/user/trusty-ci-environment/ |
The problem on PHP 7 is simply extension double-loading. |
The trusty instances seem to lack some packages required for building the php extensions, and contain phpunit version no longer working with php < 5.6. There is a bit work necessary to make that work. |
@McNetic After taking a look at https://pecl.php.net/package/raphf and some ideas for test/travis/php-modules-install.sh: |
Actually, PHP7 tests are working as of current master (see https://travis-ci.org/McNetic/PHPZipStreamer/builds/105642618). It's only the 5.5 and 5.6 tests that fail. |
This is the relevant part for this issue if [ "${PECL_HTTP_VERSION%%.*}" -ge 7 ]; then
yes | pecl_module_install raphf raphf.so
yes | pecl_module_install propro propro.so
elif [ "${PECL_HTTP_VERSION%%.*}" -gt 1 ]; then
yes | pecl_module_install raphf-1.1.2 raphf.so
yes | pecl_module_install propro-1.0.2 propro.so
fi All other modifications are making the test safer. |
The point is that latest raphf works only on PHP 7, 1.1.2 has to be installed for 5.* |
Well, that's nice. With these raphf/propro versions, it works at least for pecl_http 3 (unfortunately, still not with pecl_http 2.5.0). |
You're welcome. |
Unit tests in Travis-CI are not working for PHP 5.5/5.6, although the tests can be run manually without problems. See https://travis-ci.org/McNetic/PHPZipStreamer/builds/72121020 for the output.
@szepeviktor
The text was updated successfully, but these errors were encountered: