mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-28 10:53:39 +01:00
use domain from phpunix.xml and output Apache error.log so diagnose PHP errors in requests
This commit is contained in:
parent
5cedd472f9
commit
afacffa69b
@ -71,6 +71,8 @@ script:
|
|||||||
# --source_dir `pwd` --start_db '' --autostart_db '' --start_webserver '' --webserver_user ''
|
# --source_dir `pwd` --start_db '' --autostart_db '' --start_webserver '' --webserver_user ''
|
||||||
# Ubuntu has problems with #!/usr/bin/env php -dapc.enable=1, it stalls forever
|
# Ubuntu has problems with #!/usr/bin/env php -dapc.enable=1, it stalls forever
|
||||||
- vendor/bin/phpunit -c doc -dapc.enable_cli=1
|
- vendor/bin/phpunit -c doc -dapc.enable_cli=1
|
||||||
|
# output Apache error.log to diagnose PHP errors in requests send by unit-tests
|
||||||
|
- sudo cat /var/log/apache2/error.log
|
||||||
# do not run syntax check for hhvm, as it always fails / get terminated after 10m
|
# do not run syntax check for hhvm, as it always fails / get terminated after 10m
|
||||||
- test $(phpenv version-name) = 'hhvm' || ./doc/php_syntax_check.sh
|
- test $(phpenv version-name) = 'hhvm' || ./doc/php_syntax_check.sh
|
||||||
|
|
||||||
|
@ -30,6 +30,11 @@ if (ini_get('session.save_handler') === 'files' && !is_writable(ini_get('session
|
|||||||
{
|
{
|
||||||
ini_set('session.save_path','/tmp'); // regular users may have no rights to apache's session dir
|
ini_set('session.save_path','/tmp'); // regular users may have no rights to apache's session dir
|
||||||
}
|
}
|
||||||
|
// set domain from doc/phpunit.xml
|
||||||
|
if (!isset($_SERVER['HTTP_HOST']) && $GLOBALS['EGW_DOMAIN'] !== 'default')
|
||||||
|
{
|
||||||
|
$_SERVER['HTTP_HOST'] = $GLOBALS['EGW_DOMAIN'];
|
||||||
|
}
|
||||||
|
|
||||||
// Symlink api/src/fixtures/apps/* to root
|
// Symlink api/src/fixtures/apps/* to root
|
||||||
foreach(scandir($path=__DIR__.'/../api/tests/fixtures/apps') as $app)
|
foreach(scandir($path=__DIR__.'/../api/tests/fixtures/apps') as $app)
|
||||||
|
Loading…
Reference in New Issue
Block a user