-
Notifications
You must be signed in to change notification settings - Fork 3
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
PHP 5.2x on Travis-CI - Test run & Code coverage generation Issues. #5
Comments
Added a basic base_conf.php file in commit 49a7f4c |
Removed PHP 5.2 from CI Config. CI builds for 5.2 started failing in devel yesterday. Likely related to: https://blog.travis-ci.com/2017-04-17-precise-EOL At some point, we will go through the same thing with PHP 5.3.
May be related to SSL support under PHP5.2x. More specifically the apparent lack thereof. |
So that we can test PHP Safe Mode code paths. Reopens Issue #5
Current sub Issues.
|
Added $BASE_path initialization to files in admin.
Modified PHP 5.2 custom base_conf.
Add/Test/Use Non Assuming Constant set routine. SetConst()
All include(s) for includes/base_constants.inc.php Are now include_once()
All include(s) for includes/base_state_common.inc.php Are now include_once()
We've stopped chasing Issue #5 for now as we've hit a dead end in figuring out why it won't generate code coverage info in the default configuration. |
Link to example:
https://travis-ci.com/NathanGibbs3/BASE/jobs/183155000
Other Info:
Travis-CI
PHP 5.2.17
PHPUnit 3.6.12
XDebug enabled via file in Repo: https://github.com/NathanGibbs3/BASE/blob/devel/tests/5.2-xdebug.ini
To Understand how XDebug is enabled, see code in: https://github.com/NathanGibbs3/BASE/blob/devel/tests/setupenv.sh
Expected Behavior:
Code Coverage Reports are generated & tests run without warnings.
Current Behavior:
After successfully running Unit tests, PHPUnit prints:
Generating code coverage report in Clover XML format ...
Followed by a bunch of Warning & Notice Errors about the code such as:
Warning: include(../base_conf.php): failed to open stream: No such file or directory in /home/travis/build/NathanGibbs3/BASE/admin/base_roleadmin.php on line 21
Warning: include(): Failed opening '../base_conf.php' for inclusion (include_path='.:/home/travis/.phpenv/versions/5.2.17/pear') in /home/travis/build/NathanGibbs3/BASE/admin/base_roleadmin.php on line 21
Notice: Undefined variable: BASE_path in /home/travis/build/NathanGibbs3/BASE/admin/base_roleadmin.php on line 22
Notice: Use of undefined constant _SOURCE - assumed '_SOURCE' in /home/travis/build/NathanGibbs3/BASE/includes/base_state_citems.inc.php on line 953
etc.
Code Coverage Reports are not generated.
Solution:
I suspect this is a PHP 5.2 related Issue.
As I've already run into other issues with the PHP 5.2 Build environment on Travis-CI.
The text was updated successfully, but these errors were encountered: