From 0323725560a7f21c42513ceeea5c12d6aa843cc4 Mon Sep 17 00:00:00 2001 From: Marc Bennewitz Date: Mon, 22 Dec 2014 19:10:05 +0100 Subject: [PATCH] Travis optimizations - disabled GC on running unit tests and cs fixer - allow to run more parallel processes than CPUs - ignore special folders ('_files' and 'AllTests') to run with phpunit --- .travis.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index d60f65f..895c7c2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -17,9 +17,10 @@ before_script: script: # Run tests for the various components in parallel - - ls -d tests/ZendTest/* | parallel --gnu --keep-order 'echo "Running {} tests"; ./vendor/bin/phpunit -c tests/phpunit.xml.dist --coverage-php build/coverage/coverage-{/.}.cov {};' || exit 1 + - ls -d tests/ZendTest/* | grep -v 'tests/ZendTest/_files' | grep -v 'tests/ZendTest/AllTests' | parallel --gnu -P 0 'echo "Running {} tests"; php -d zend.enable_gc=0 ./vendor/bin/phpunit -c tests/phpunit.xml.dist --coverage-php build/coverage/coverage-{/.}.cov {};' || exit 1 + # Run coding standard checks in parallel - - ls -d library/Zend/* tests/ZendTest/* bin | parallel --gnu --keep-order 'echo "Running {} CS checks"; ./vendor/bin/php-cs-fixer fix {} -v --dry-run --config-file=.php_cs;' || exit 1 + - ls -d library/Zend/* tests/ZendTest/* bin | parallel --gnu -P 0 'echo "Running {} CS checks"; php -d zend.enable_gc=0 ./vendor/bin/php-cs-fixer fix {} -v --dry-run --config-file=.php_cs;' || exit 1 after_script: # Merges the individual clover reports of each component into a single clover.xml