From 918548665daab7144052383d35b6fa6e9e6f79f8 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 12 Jul 2016 18:42:47 +0200 Subject: [PATCH] fix Travis stalls on #!/usr/bin/env in test-cli.php --- .travis.yml | 3 ++- doc/test-cli.php | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 7bc1927cf6..db16de7929 100644 --- a/.travis.yml +++ b/.travis.yml @@ -38,7 +38,8 @@ before_script: script: - ./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: directories: diff --git a/doc/test-cli.php b/doc/test-cli.php index f196bf8750..38d138f1ae 100755 --- a/doc/test-cli.php +++ b/doc/test-cli.php @@ -12,7 +12,7 @@ if (php_sapi_name() !== 'cli') // security precaution: forbit calling as web-pag die('

test-cli.php must NOT be called as web-page --> exiting !!!

'); } -require_once './api/src/loader/common.php'; +require_once dirname(__DIR__).'/api/src/loader/common.php'; $_SERVER['argv'][] = '--verbose'; $_SERVER['argv'][] = 'EgroupwareTestRunner';