Add parallel build to travis script
parent
b482ebe0ca
commit
38917c2047
|
@ -7,9 +7,11 @@ php:
|
||||||
- 5.5
|
- 5.5
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
|
- sudo apt-get install parallel
|
||||||
- echo '' > ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini
|
- echo '' > ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini
|
||||||
- composer install --dev --prefer-source
|
- composer install --dev --prefer-source
|
||||||
- git config --global user.name travis-ci
|
- git config --global user.name travis-ci
|
||||||
- git config --global user.email travis@example.com
|
- 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
|
||||||
|
|
|
@ -17,7 +17,7 @@ use Composer\Package\Link;
|
||||||
use Composer\Util\Filesystem;
|
use Composer\Util\Filesystem;
|
||||||
use Composer\Package\AliasPackage;
|
use Composer\Package\AliasPackage;
|
||||||
use Composer\Package\Package;
|
use Composer\Package\Package;
|
||||||
use Composer\Test\TestCase;
|
use Composer\TestCase;
|
||||||
use Composer\Script\ScriptEvents;
|
use Composer\Script\ScriptEvents;
|
||||||
|
|
||||||
class AutoloadGeneratorTest extends TestCase
|
class AutoloadGeneratorTest extends TestCase
|
||||||
|
|
|
@ -13,6 +13,7 @@
|
||||||
namespace Composer\Test;
|
namespace Composer\Test;
|
||||||
|
|
||||||
use Composer\Cache;
|
use Composer\Cache;
|
||||||
|
use Composer\TestCase;
|
||||||
|
|
||||||
class CacheTest extends TestCase
|
class CacheTest extends TestCase
|
||||||
{
|
{
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
namespace Composer\Test\Command;
|
namespace Composer\Test\Command;
|
||||||
|
|
||||||
use Composer\Command\InitCommand;
|
use Composer\Command\InitCommand;
|
||||||
use Composer\Test\TestCase;
|
use Composer\TestCase;
|
||||||
|
|
||||||
class InitCommandTest extends TestCase
|
class InitCommandTest extends TestCase
|
||||||
{
|
{
|
||||||
|
|
|
@ -13,6 +13,7 @@
|
||||||
namespace Composer\Test;
|
namespace Composer\Test;
|
||||||
|
|
||||||
use Composer\Composer;
|
use Composer\Composer;
|
||||||
|
use Composer\TestCase;
|
||||||
|
|
||||||
class ComposerTest extends TestCase
|
class ComposerTest extends TestCase
|
||||||
{
|
{
|
||||||
|
|
|
@ -19,7 +19,7 @@ use Composer\DependencyResolver\Pool;
|
||||||
use Composer\Package\Link;
|
use Composer\Package\Link;
|
||||||
use Composer\Package\AliasPackage;
|
use Composer\Package\AliasPackage;
|
||||||
use Composer\Package\LinkConstraint\VersionConstraint;
|
use Composer\Package\LinkConstraint\VersionConstraint;
|
||||||
use Composer\Test\TestCase;
|
use Composer\TestCase;
|
||||||
|
|
||||||
class DefaultPolicyTest extends TestCase
|
class DefaultPolicyTest extends TestCase
|
||||||
{
|
{
|
||||||
|
|
|
@ -15,7 +15,7 @@ namespace Composer\Test\DependencyResolver;
|
||||||
use Composer\DependencyResolver\Pool;
|
use Composer\DependencyResolver\Pool;
|
||||||
use Composer\Repository\ArrayRepository;
|
use Composer\Repository\ArrayRepository;
|
||||||
use Composer\Package\BasePackage;
|
use Composer\Package\BasePackage;
|
||||||
use Composer\Test\TestCase;
|
use Composer\TestCase;
|
||||||
|
|
||||||
class PoolTest extends TestCase
|
class PoolTest extends TestCase
|
||||||
{
|
{
|
||||||
|
|
|
@ -15,7 +15,7 @@ namespace Composer\Test\DependencyResolver;
|
||||||
use Composer\DependencyResolver\Request;
|
use Composer\DependencyResolver\Request;
|
||||||
use Composer\DependencyResolver\Pool;
|
use Composer\DependencyResolver\Pool;
|
||||||
use Composer\Repository\ArrayRepository;
|
use Composer\Repository\ArrayRepository;
|
||||||
use Composer\Test\TestCase;
|
use Composer\TestCase;
|
||||||
|
|
||||||
class RequestTest extends TestCase
|
class RequestTest extends TestCase
|
||||||
{
|
{
|
||||||
|
|
|
@ -16,7 +16,7 @@ use Composer\DependencyResolver\Rule;
|
||||||
use Composer\DependencyResolver\RuleSet;
|
use Composer\DependencyResolver\RuleSet;
|
||||||
use Composer\DependencyResolver\Pool;
|
use Composer\DependencyResolver\Pool;
|
||||||
use Composer\Repository\ArrayRepository;
|
use Composer\Repository\ArrayRepository;
|
||||||
use Composer\Test\TestCase;
|
use Composer\TestCase;
|
||||||
|
|
||||||
class RuleSetTest extends TestCase
|
class RuleSetTest extends TestCase
|
||||||
{
|
{
|
||||||
|
|
|
@ -15,7 +15,7 @@ namespace Composer\Test\DependencyResolver;
|
||||||
use Composer\DependencyResolver\Rule;
|
use Composer\DependencyResolver\Rule;
|
||||||
use Composer\DependencyResolver\Pool;
|
use Composer\DependencyResolver\Pool;
|
||||||
use Composer\Repository\ArrayRepository;
|
use Composer\Repository\ArrayRepository;
|
||||||
use Composer\Test\TestCase;
|
use Composer\TestCase;
|
||||||
|
|
||||||
class RuleTest extends TestCase
|
class RuleTest extends TestCase
|
||||||
{
|
{
|
||||||
|
|
|
@ -18,7 +18,7 @@ use Composer\DependencyResolver\Request;
|
||||||
use Composer\DependencyResolver\Solver;
|
use Composer\DependencyResolver\Solver;
|
||||||
use Composer\DependencyResolver\SolverProblemsException;
|
use Composer\DependencyResolver\SolverProblemsException;
|
||||||
use Composer\Package\Link;
|
use Composer\Package\Link;
|
||||||
use Composer\Test\TestCase;
|
use Composer\TestCase;
|
||||||
use Composer\Package\LinkConstraint\MultiConstraint;
|
use Composer\Package\LinkConstraint\MultiConstraint;
|
||||||
|
|
||||||
class SolverTest extends TestCase
|
class SolverTest extends TestCase
|
||||||
|
|
|
@ -14,7 +14,7 @@ namespace Composer\Test\EventDispatcher;
|
||||||
|
|
||||||
use Composer\EventDispatcher\Event;
|
use Composer\EventDispatcher\Event;
|
||||||
use Composer\EventDispatcher\EventDispatcher;
|
use Composer\EventDispatcher\EventDispatcher;
|
||||||
use Composer\Test\TestCase;
|
use Composer\TestCase;
|
||||||
use Composer\Script;
|
use Composer\Script;
|
||||||
use Composer\Util\ProcessExecutor;
|
use Composer\Util\ProcessExecutor;
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
namespace Composer\Test\IO;
|
namespace Composer\Test\IO;
|
||||||
|
|
||||||
use Composer\IO\ConsoleIO;
|
use Composer\IO\ConsoleIO;
|
||||||
use Composer\Test\TestCase;
|
use Composer\TestCase;
|
||||||
|
|
||||||
class ConsoleIOTest extends TestCase
|
class ConsoleIOTest extends TestCase
|
||||||
{
|
{
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
namespace Composer\Test\IO;
|
namespace Composer\Test\IO;
|
||||||
|
|
||||||
use Composer\IO\NullIO;
|
use Composer\IO\NullIO;
|
||||||
use Composer\Test\TestCase;
|
use Composer\TestCase;
|
||||||
|
|
||||||
class NullIOTest extends TestCase
|
class NullIOTest extends TestCase
|
||||||
{
|
{
|
||||||
|
|
|
@ -14,7 +14,7 @@ namespace Composer\Test\Installer;
|
||||||
|
|
||||||
use Composer\Installer\LibraryInstaller;
|
use Composer\Installer\LibraryInstaller;
|
||||||
use Composer\Util\Filesystem;
|
use Composer\Util\Filesystem;
|
||||||
use Composer\Test\TestCase;
|
use Composer\TestCase;
|
||||||
use Composer\Composer;
|
use Composer\Composer;
|
||||||
use Composer\Config;
|
use Composer\Config;
|
||||||
|
|
||||||
|
|
|
@ -27,6 +27,7 @@ use Composer\Test\Mock\InstalledFilesystemRepositoryMock;
|
||||||
use Composer\Test\Mock\InstallationManagerMock;
|
use Composer\Test\Mock\InstallationManagerMock;
|
||||||
use Symfony\Component\Console\Input\StringInput;
|
use Symfony\Component\Console\Input\StringInput;
|
||||||
use Symfony\Component\Console\Output\StreamOutput;
|
use Symfony\Component\Console\Output\StreamOutput;
|
||||||
|
use Composer\TestCase;
|
||||||
|
|
||||||
class InstallerTest extends TestCase
|
class InstallerTest extends TestCase
|
||||||
{
|
{
|
||||||
|
|
|
@ -14,7 +14,7 @@ namespace Composer\Test\Package;
|
||||||
|
|
||||||
use Composer\Package\Package;
|
use Composer\Package\Package;
|
||||||
use Composer\Package\Version\VersionParser;
|
use Composer\Package\Version\VersionParser;
|
||||||
use Composer\Test\TestCase;
|
use Composer\TestCase;
|
||||||
|
|
||||||
class CompletePackageTest extends TestCase
|
class CompletePackageTest extends TestCase
|
||||||
{
|
{
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
namespace Composer\Test\Repository;
|
namespace Composer\Test\Repository;
|
||||||
|
|
||||||
use Composer\Repository\ArrayRepository;
|
use Composer\Repository\ArrayRepository;
|
||||||
use Composer\Test\TestCase;
|
use Composer\TestCase;
|
||||||
|
|
||||||
class ArrayRepositoryTest extends TestCase
|
class ArrayRepositoryTest extends TestCase
|
||||||
{
|
{
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
|
|
||||||
namespace Composer\Repository;
|
namespace Composer\Repository;
|
||||||
|
|
||||||
use Composer\Test\TestCase;
|
use Composer\TestCase;
|
||||||
use Composer\IO\NullIO;
|
use Composer\IO\NullIO;
|
||||||
use Composer\Config;
|
use Composer\Config;
|
||||||
use Composer\Package\BasePackage;
|
use Composer\Package\BasePackage;
|
||||||
|
|
|
@ -15,7 +15,7 @@ namespace Composer\Test\Repository;
|
||||||
use Composer\Repository\ComposerRepository;
|
use Composer\Repository\ComposerRepository;
|
||||||
use Composer\IO\NullIO;
|
use Composer\IO\NullIO;
|
||||||
use Composer\Test\Mock\FactoryMock;
|
use Composer\Test\Mock\FactoryMock;
|
||||||
use Composer\Test\TestCase;
|
use Composer\TestCase;
|
||||||
use Composer\Package\Loader\ArrayLoader;
|
use Composer\Package\Loader\ArrayLoader;
|
||||||
use Composer\Package\Version\VersionParser;
|
use Composer\Package\Version\VersionParser;
|
||||||
|
|
||||||
|
|
|
@ -14,7 +14,7 @@ namespace Composer\Test\Repository;
|
||||||
|
|
||||||
use Composer\Repository\CompositeRepository;
|
use Composer\Repository\CompositeRepository;
|
||||||
use Composer\Repository\ArrayRepository;
|
use Composer\Repository\ArrayRepository;
|
||||||
use Composer\Test\TestCase;
|
use Composer\TestCase;
|
||||||
|
|
||||||
class CompositeRepositoryTest extends TestCase
|
class CompositeRepositoryTest extends TestCase
|
||||||
{
|
{
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
namespace Composer\Repository;
|
namespace Composer\Repository;
|
||||||
|
|
||||||
use Composer\Repository\FilesystemRepository;
|
use Composer\Repository\FilesystemRepository;
|
||||||
use Composer\Test\TestCase;
|
use Composer\TestCase;
|
||||||
|
|
||||||
class FilesystemRepositoryTest extends TestCase
|
class FilesystemRepositoryTest extends TestCase
|
||||||
{
|
{
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
|
|
||||||
namespace Composer\Repository\Pear;
|
namespace Composer\Repository\Pear;
|
||||||
|
|
||||||
use Composer\Test\TestCase;
|
use Composer\TestCase;
|
||||||
use Composer\Package\Version\VersionParser;
|
use Composer\Package\Version\VersionParser;
|
||||||
use Composer\Package\LinkConstraint\VersionConstraint;
|
use Composer\Package\LinkConstraint\VersionConstraint;
|
||||||
use Composer\Package\Link;
|
use Composer\Package\Link;
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
|
|
||||||
namespace Composer\Repository\Pear;
|
namespace Composer\Repository\Pear;
|
||||||
|
|
||||||
use Composer\Test\TestCase;
|
use Composer\TestCase;
|
||||||
use Composer\Test\Mock\RemoteFilesystemMock;
|
use Composer\Test\Mock\RemoteFilesystemMock;
|
||||||
|
|
||||||
class ChannelRest10ReaderTest extends TestCase
|
class ChannelRest10ReaderTest extends TestCase
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
|
|
||||||
namespace Composer\Repository\Pear;
|
namespace Composer\Repository\Pear;
|
||||||
|
|
||||||
use Composer\Test\TestCase;
|
use Composer\TestCase;
|
||||||
use Composer\Test\Mock\RemoteFilesystemMock;
|
use Composer\Test\Mock\RemoteFilesystemMock;
|
||||||
|
|
||||||
class ChannelRest11ReaderTest extends TestCase
|
class ChannelRest11ReaderTest extends TestCase
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
|
|
||||||
namespace Composer\Repository\Pear;
|
namespace Composer\Repository\Pear;
|
||||||
|
|
||||||
use Composer\Test\TestCase;
|
use Composer\TestCase;
|
||||||
|
|
||||||
class PackageDependencyParserTest extends TestCase
|
class PackageDependencyParserTest extends TestCase
|
||||||
{
|
{
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
|
|
||||||
namespace Composer\Repository;
|
namespace Composer\Repository;
|
||||||
|
|
||||||
use Composer\Test\TestCase;
|
use Composer\TestCase;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @group slow
|
* @group slow
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
namespace Composer\Test\Util;
|
namespace Composer\Test\Util;
|
||||||
|
|
||||||
use Composer\Util\ErrorHandler;
|
use Composer\Util\ErrorHandler;
|
||||||
use Composer\Test\TestCase;
|
use Composer\TestCase;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ErrorHandler test case
|
* ErrorHandler test case
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
namespace Composer\Test\Util;
|
namespace Composer\Test\Util;
|
||||||
|
|
||||||
use Composer\Util\Filesystem;
|
use Composer\Util\Filesystem;
|
||||||
use Composer\Test\TestCase;
|
use Composer\TestCase;
|
||||||
|
|
||||||
class FilesystemTest extends TestCase
|
class FilesystemTest extends TestCase
|
||||||
{
|
{
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
namespace Composer\Test\Util;
|
namespace Composer\Test\Util;
|
||||||
|
|
||||||
use Composer\Util\ProcessExecutor;
|
use Composer\Util\ProcessExecutor;
|
||||||
use Composer\Test\TestCase;
|
use Composer\TestCase;
|
||||||
|
|
||||||
class ProcessExecutorTest extends TestCase
|
class ProcessExecutorTest extends TestCase
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
namespace Composer\Test\Util;
|
namespace Composer\Test\Util;
|
||||||
|
|
||||||
use Composer\Test\TestCase;
|
use Composer\TestCase;
|
||||||
use Composer\Util\SpdxLicenseIdentifier;
|
use Composer\Util\SpdxLicenseIdentifier;
|
||||||
|
|
||||||
class SpdxLicenseIdentifierTest extends TestCase
|
class SpdxLicenseIdentifierTest extends TestCase
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
* file that was distributed with this source code.
|
* file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Composer\Test;
|
namespace Composer;
|
||||||
|
|
||||||
use Composer\Package\Version\VersionParser;
|
use Composer\Package\Version\VersionParser;
|
||||||
use Composer\Package\Package;
|
use Composer\Package\Package;
|
|
@ -14,3 +14,5 @@ error_reporting(E_ALL);
|
||||||
|
|
||||||
$loader = require __DIR__.'/../src/bootstrap.php';
|
$loader = require __DIR__.'/../src/bootstrap.php';
|
||||||
$loader->add('Composer\Test', __DIR__);
|
$loader->add('Composer\Test', __DIR__);
|
||||||
|
|
||||||
|
require __DIR__.'/Composer/TestCase.php';
|
||||||
|
|
Loading…
Reference in New Issue