From 2a99cac4a2414380f080e88915af93aed8b47a61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Wed, 23 Apr 2014 15:27:24 +0200 Subject: [PATCH] Do not try to measure coverage on Selenium builds with Travis MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is currently too broken in PHPUnit-Selenium, the most obvious problem being https://github.com/sebastianbergmann/phpunit-selenium/pull/303 Signed-off-by: Michal Čihař --- .travis.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index 2abcddcf04..2281541f7f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -43,11 +43,6 @@ before_script: if [[ ! -z "$SELENIUM" ]] ; then - ln -s ~/.phpenv/versions/$(phpenv version-name)/pear/PHPUnit/Extensions/SeleniumCommon/phpunit_coverage.php . ; - - echo auto_prepend_file = ~/.phpenv/versions/$(phpenv version-name)/pear/PHPUnit/Extensions/SeleniumCommon/prepend.php >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini ; - echo auto_append_file = ~/.phpenv/versions/$(phpenv version-name)/pear/PHPUnit/Extensions/SeleniumCommon/append.php >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini ; - php --server 127.0.0.1:8000 & wget https://www.browserstack.com/browserstack-local/BrowserStackLocal-linux-x64.zip ; @@ -65,8 +60,12 @@ script: if [[ $TRAVIS_PHP_VERSION == "hhvm" ]] ; then ant phpunit-hhvm ; else + if [[ ! -z "$SELENIUM" ]] ; then + ant phpunit-nocoverage ; + else ant phpunit ; fi ; + fi ; else ant lint ; fi