1
0
Fork 0

Merge pull request #2289 from Seldaek/paralleltravis

Add parallel build to travis script
pull/2279/merge
Jordi Boggiano 2013-09-25 01:32:49 -07:00
commit 7defc95e4b
33 changed files with 37 additions and 30 deletions

View File

@ -7,9 +7,11 @@ php:
- 5.5
before_script:
- sudo apt-get install parallel
- echo '' > ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini
- composer install --dev --prefer-source
- git config --global user.name travis-ci
- git config --global user.email travis@example.com
script: ./vendor/bin/phpunit -c tests/complete.phpunit.xml
script:
- ls -d tests/Composer/Test/* | parallel --gnu --keep-order 'echo "Running {} tests"; ./vendor/bin/phpunit -c tests/complete.phpunit.xml {};' || exit 1

View File

@ -17,7 +17,7 @@ use Composer\Package\Link;
use Composer\Util\Filesystem;
use Composer\Package\AliasPackage;
use Composer\Package\Package;
use Composer\Test\TestCase;
use Composer\TestCase;
use Composer\Script\ScriptEvents;
class AutoloadGeneratorTest extends TestCase

View File

@ -13,6 +13,7 @@
namespace Composer\Test;
use Composer\Cache;
use Composer\TestCase;
class CacheTest extends TestCase
{

View File

@ -13,7 +13,7 @@
namespace Composer\Test\Command;
use Composer\Command\InitCommand;
use Composer\Test\TestCase;
use Composer\TestCase;
class InitCommandTest extends TestCase
{

View File

@ -13,6 +13,7 @@
namespace Composer\Test;
use Composer\Composer;
use Composer\TestCase;
class ComposerTest extends TestCase
{

View File

@ -19,7 +19,7 @@ use Composer\DependencyResolver\Pool;
use Composer\Package\Link;
use Composer\Package\AliasPackage;
use Composer\Package\LinkConstraint\VersionConstraint;
use Composer\Test\TestCase;
use Composer\TestCase;
class DefaultPolicyTest extends TestCase
{

View File

@ -15,7 +15,7 @@ namespace Composer\Test\DependencyResolver;
use Composer\DependencyResolver\Pool;
use Composer\Repository\ArrayRepository;
use Composer\Package\BasePackage;
use Composer\Test\TestCase;
use Composer\TestCase;
class PoolTest extends TestCase
{

View File

@ -15,7 +15,7 @@ namespace Composer\Test\DependencyResolver;
use Composer\DependencyResolver\Request;
use Composer\DependencyResolver\Pool;
use Composer\Repository\ArrayRepository;
use Composer\Test\TestCase;
use Composer\TestCase;
class RequestTest extends TestCase
{

View File

@ -16,7 +16,7 @@ use Composer\DependencyResolver\Rule;
use Composer\DependencyResolver\RuleSet;
use Composer\DependencyResolver\Pool;
use Composer\Repository\ArrayRepository;
use Composer\Test\TestCase;
use Composer\TestCase;
class RuleSetTest extends TestCase
{

View File

@ -15,7 +15,7 @@ namespace Composer\Test\DependencyResolver;
use Composer\DependencyResolver\Rule;
use Composer\DependencyResolver\Pool;
use Composer\Repository\ArrayRepository;
use Composer\Test\TestCase;
use Composer\TestCase;
class RuleTest extends TestCase
{

View File

@ -18,7 +18,7 @@ use Composer\DependencyResolver\Request;
use Composer\DependencyResolver\Solver;
use Composer\DependencyResolver\SolverProblemsException;
use Composer\Package\Link;
use Composer\Test\TestCase;
use Composer\TestCase;
use Composer\Package\LinkConstraint\MultiConstraint;
class SolverTest extends TestCase

View File

@ -14,7 +14,7 @@ namespace Composer\Test\EventDispatcher;
use Composer\EventDispatcher\Event;
use Composer\EventDispatcher\EventDispatcher;
use Composer\Test\TestCase;
use Composer\TestCase;
use Composer\Script;
use Composer\Util\ProcessExecutor;

View File

@ -13,7 +13,7 @@
namespace Composer\Test\IO;
use Composer\IO\ConsoleIO;
use Composer\Test\TestCase;
use Composer\TestCase;
class ConsoleIOTest extends TestCase
{

View File

@ -13,7 +13,7 @@
namespace Composer\Test\IO;
use Composer\IO\NullIO;
use Composer\Test\TestCase;
use Composer\TestCase;
class NullIOTest extends TestCase
{

View File

@ -14,7 +14,7 @@ namespace Composer\Test\Installer;
use Composer\Installer\LibraryInstaller;
use Composer\Util\Filesystem;
use Composer\Test\TestCase;
use Composer\TestCase;
use Composer\Composer;
use Composer\Config;

View File

@ -27,6 +27,7 @@ use Composer\Test\Mock\InstalledFilesystemRepositoryMock;
use Composer\Test\Mock\InstallationManagerMock;
use Symfony\Component\Console\Input\StringInput;
use Symfony\Component\Console\Output\StreamOutput;
use Composer\TestCase;
class InstallerTest extends TestCase
{

View File

@ -14,7 +14,7 @@ namespace Composer\Test\Package;
use Composer\Package\Package;
use Composer\Package\Version\VersionParser;
use Composer\Test\TestCase;
use Composer\TestCase;
class CompletePackageTest extends TestCase
{

View File

@ -13,7 +13,7 @@
namespace Composer\Test\Repository;
use Composer\Repository\ArrayRepository;
use Composer\Test\TestCase;
use Composer\TestCase;
class ArrayRepositoryTest extends TestCase
{

View File

@ -12,7 +12,7 @@
namespace Composer\Repository;
use Composer\Test\TestCase;
use Composer\TestCase;
use Composer\IO\NullIO;
use Composer\Config;
use Composer\Package\BasePackage;

View File

@ -15,7 +15,7 @@ namespace Composer\Test\Repository;
use Composer\Repository\ComposerRepository;
use Composer\IO\NullIO;
use Composer\Test\Mock\FactoryMock;
use Composer\Test\TestCase;
use Composer\TestCase;
use Composer\Package\Loader\ArrayLoader;
use Composer\Package\Version\VersionParser;

View File

@ -14,7 +14,7 @@ namespace Composer\Test\Repository;
use Composer\Repository\CompositeRepository;
use Composer\Repository\ArrayRepository;
use Composer\Test\TestCase;
use Composer\TestCase;
class CompositeRepositoryTest extends TestCase
{

View File

@ -13,7 +13,7 @@
namespace Composer\Repository;
use Composer\Repository\FilesystemRepository;
use Composer\Test\TestCase;
use Composer\TestCase;
class FilesystemRepositoryTest extends TestCase
{

View File

@ -12,7 +12,7 @@
namespace Composer\Repository\Pear;
use Composer\Test\TestCase;
use Composer\TestCase;
use Composer\Package\Version\VersionParser;
use Composer\Package\LinkConstraint\VersionConstraint;
use Composer\Package\Link;

View File

@ -12,7 +12,7 @@
namespace Composer\Repository\Pear;
use Composer\Test\TestCase;
use Composer\TestCase;
use Composer\Test\Mock\RemoteFilesystemMock;
class ChannelRest10ReaderTest extends TestCase

View File

@ -12,7 +12,7 @@
namespace Composer\Repository\Pear;
use Composer\Test\TestCase;
use Composer\TestCase;
use Composer\Test\Mock\RemoteFilesystemMock;
class ChannelRest11ReaderTest extends TestCase

View File

@ -12,7 +12,7 @@
namespace Composer\Repository\Pear;
use Composer\Test\TestCase;
use Composer\TestCase;
class PackageDependencyParserTest extends TestCase
{

View File

@ -12,7 +12,7 @@
namespace Composer\Repository;
use Composer\Test\TestCase;
use Composer\TestCase;
/**
* @group slow

View File

@ -13,7 +13,7 @@
namespace Composer\Test\Util;
use Composer\Util\ErrorHandler;
use Composer\Test\TestCase;
use Composer\TestCase;
/**
* ErrorHandler test case

View File

@ -13,7 +13,7 @@
namespace Composer\Test\Util;
use Composer\Util\Filesystem;
use Composer\Test\TestCase;
use Composer\TestCase;
class FilesystemTest extends TestCase
{

View File

@ -13,7 +13,7 @@
namespace Composer\Test\Util;
use Composer\Util\ProcessExecutor;
use Composer\Test\TestCase;
use Composer\TestCase;
class ProcessExecutorTest extends TestCase
{

View File

@ -1,7 +1,7 @@
<?php
namespace Composer\Test\Util;
use Composer\Test\TestCase;
use Composer\TestCase;
use Composer\Util\SpdxLicenseIdentifier;
class SpdxLicenseIdentifierTest extends TestCase

View File

@ -10,7 +10,7 @@
* file that was distributed with this source code.
*/
namespace Composer\Test;
namespace Composer;
use Composer\Package\Version\VersionParser;
use Composer\Package\Package;

View File

@ -14,3 +14,5 @@ error_reporting(E_ALL);
$loader = require __DIR__.'/../src/bootstrap.php';
$loader->add('Composer\Test', __DIR__);
require __DIR__.'/Composer/TestCase.php';