Run lint in separate Travis job

This should speed up execution as the lint job does not have to do any
installations.

Signed-off-by: Michal Čihař <michal@cihar.com>
This commit is contained in:
Michal Čihař 2014-03-26 14:11:19 +01:00
parent e128147935
commit 0e1dce01ab

View File

@ -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: