From 0e1dce01ab178bcd0944a82e1ea9299a5412afea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Wed, 26 Mar 2014 14:11:19 +0100 Subject: [PATCH] Run lint in separate Travis job MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This should speed up execution as the lint job does not have to do any installations. Signed-off-by: Michal Čihař --- .travis.yml | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index 18819b3b62..c34617a87d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,21 +7,31 @@ php: env: matrix: PHPUNIT_ARGS="--exclude-group selenium" + LINT="yes" before_install: - sudo apt-get update -qq - sudo apt-get install -qq ant before_script: - - if [[ $TRAVIS_PHP_VERSION != "hhvm" ]] ; then + - if [[ $TRAVIS_PHP_VERSION != "hhvm" -a -z "$LINT" ]] ; then git clone git://github.com/zenovich/runkit.git && cd runkit && phpize && ./configure && make && make install && cd .. ; phpenv config-add test/travis.php.ini ; pear channel-discover pear.phpunit.de ; pear install phpunit/PHPUnit_Selenium ; fi - - composer install --dev --no-interaction + - if [[ -z "$LINT" ]] ; then + composer install --dev --no-interaction ; + fi script: - - ./scripts/generate-mo --quiet - - if [[ $TRAVIS_PHP_VERSION == "hhvm" ]] ; then ant phpunit-hhvm ; else ant phpunit ; fi - - ant lint + - if [[ -z "$LINT" ]] ; then + if [[ $TRAVIS_PHP_VERSION == "hhvm" ]] ; then + ant phpunit-hhvm ; + else + ant phpunit ; + fi ; + else + ./scripts/generate-mo --quiet ; + ant lint ; + fi after_script: - php vendor/bin/coveralls -v matrix: