Add parallel build to travis script
parent
b482ebe0ca
commit
38917c2047
|
@ -6,10 +6,12 @@ php:
|
|||
- 5.4
|
||||
- 5.5
|
||||
|
||||
before_script:
|
||||
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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -13,6 +13,7 @@
|
|||
namespace Composer\Test;
|
||||
|
||||
use Composer\Cache;
|
||||
use Composer\TestCase;
|
||||
|
||||
class CacheTest extends TestCase
|
||||
{
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
namespace Composer\Test\Command;
|
||||
|
||||
use Composer\Command\InitCommand;
|
||||
use Composer\Test\TestCase;
|
||||
use Composer\TestCase;
|
||||
|
||||
class InitCommandTest extends TestCase
|
||||
{
|
||||
|
|
|
@ -13,6 +13,7 @@
|
|||
namespace Composer\Test;
|
||||
|
||||
use Composer\Composer;
|
||||
use Composer\TestCase;
|
||||
|
||||
class ComposerTest extends TestCase
|
||||
{
|
||||
|
|
|
@ -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
|
||||
{
|
||||
|
|
|
@ -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
|
||||
{
|
||||
|
|
|
@ -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
|
||||
{
|
||||
|
|
|
@ -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
|
||||
{
|
||||
|
|
|
@ -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
|
||||
{
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
namespace Composer\Test\IO;
|
||||
|
||||
use Composer\IO\ConsoleIO;
|
||||
use Composer\Test\TestCase;
|
||||
use Composer\TestCase;
|
||||
|
||||
class ConsoleIOTest extends TestCase
|
||||
{
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
namespace Composer\Test\IO;
|
||||
|
||||
use Composer\IO\NullIO;
|
||||
use Composer\Test\TestCase;
|
||||
use Composer\TestCase;
|
||||
|
||||
class NullIOTest extends TestCase
|
||||
{
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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
|
||||
{
|
||||
|
|
|
@ -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
|
||||
{
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
namespace Composer\Test\Repository;
|
||||
|
||||
use Composer\Repository\ArrayRepository;
|
||||
use Composer\Test\TestCase;
|
||||
use Composer\TestCase;
|
||||
|
||||
class ArrayRepositoryTest extends TestCase
|
||||
{
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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
|
||||
{
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
namespace Composer\Repository;
|
||||
|
||||
use Composer\Repository\FilesystemRepository;
|
||||
use Composer\Test\TestCase;
|
||||
use Composer\TestCase;
|
||||
|
||||
class FilesystemRepositoryTest extends TestCase
|
||||
{
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
|
||||
namespace Composer\Repository\Pear;
|
||||
|
||||
use Composer\Test\TestCase;
|
||||
use Composer\TestCase;
|
||||
use Composer\Test\Mock\RemoteFilesystemMock;
|
||||
|
||||
class ChannelRest10ReaderTest extends TestCase
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
|
||||
namespace Composer\Repository\Pear;
|
||||
|
||||
use Composer\Test\TestCase;
|
||||
use Composer\TestCase;
|
||||
use Composer\Test\Mock\RemoteFilesystemMock;
|
||||
|
||||
class ChannelRest11ReaderTest extends TestCase
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
|
||||
namespace Composer\Repository\Pear;
|
||||
|
||||
use Composer\Test\TestCase;
|
||||
use Composer\TestCase;
|
||||
|
||||
class PackageDependencyParserTest extends TestCase
|
||||
{
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
|
||||
namespace Composer\Repository;
|
||||
|
||||
use Composer\Test\TestCase;
|
||||
use Composer\TestCase;
|
||||
|
||||
/**
|
||||
* @group slow
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
namespace Composer\Test\Util;
|
||||
|
||||
use Composer\Util\ErrorHandler;
|
||||
use Composer\Test\TestCase;
|
||||
use Composer\TestCase;
|
||||
|
||||
/**
|
||||
* ErrorHandler test case
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
namespace Composer\Test\Util;
|
||||
|
||||
use Composer\Util\Filesystem;
|
||||
use Composer\Test\TestCase;
|
||||
use Composer\TestCase;
|
||||
|
||||
class FilesystemTest extends TestCase
|
||||
{
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
namespace Composer\Test\Util;
|
||||
|
||||
use Composer\Util\ProcessExecutor;
|
||||
use Composer\Test\TestCase;
|
||||
use Composer\TestCase;
|
||||
|
||||
class ProcessExecutorTest extends TestCase
|
||||
{
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
namespace Composer\Test\Util;
|
||||
|
||||
use Composer\Test\TestCase;
|
||||
use Composer\TestCase;
|
||||
use Composer\Util\SpdxLicenseIdentifier;
|
||||
|
||||
class SpdxLicenseIdentifierTest extends TestCase
|
||||
|
|
|
@ -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;
|
|
@ -14,3 +14,5 @@ error_reporting(E_ALL);
|
|||
|
||||
$loader = require __DIR__.'/../src/bootstrap.php';
|
||||
$loader->add('Composer\Test', __DIR__);
|
||||
|
||||
require __DIR__.'/Composer/TestCase.php';
|
||||
|
|
Loading…
Reference in New Issue