fix Travis stalls on #!/usr/bin/env in test-cli.php

This commit is contained in:
Ralf Becker 2016-07-12 18:42:47 +02:00
parent a74bba01e6
commit 918548665d
2 changed files with 3 additions and 2 deletions

View File

@ -38,7 +38,8 @@ before_script:
script: script:
- ./doc/php_syntax_check.sh - ./doc/php_syntax_check.sh
- ./doc/test-cli.php # Ubuntu has problems with #!/usr/bin/evn php, it stalls forever
- php -dapc.enable_cli=1 doc/test-cli.php
cache: cache:
directories: directories:

View File

@ -12,7 +12,7 @@ if (php_sapi_name() !== 'cli') // security precaution: forbit calling as web-pag
die('<h1>test-cli.php must NOT be called as web-page --> exiting !!!</h1>'); die('<h1>test-cli.php must NOT be called as web-page --> exiting !!!</h1>');
} }
require_once './api/src/loader/common.php'; require_once dirname(__DIR__).'/api/src/loader/common.php';
$_SERVER['argv'][] = '--verbose'; $_SERVER['argv'][] = '--verbose';
$_SERVER['argv'][] = 'EgroupwareTestRunner'; $_SERVER['argv'][] = 'EgroupwareTestRunner';