Skip to content

Commit

Permalink
added composer.json and README files
Browse files Browse the repository at this point in the history
  • Loading branch information
ivannis committed Oct 31, 2016
1 parent c5afb7e commit f25a789
Show file tree
Hide file tree
Showing 34 changed files with 709 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ build/
.atoum.config.php
phpunit.xml

src/Cubiche/Infrastructure/Repository/Tests/Units/Doctrine/ODM/MongoDB/Proxies/
src/Cubiche/Infrastructure/Repository/Tests/Units/Doctrine/ODM/MongoDB/Hydrators/
src/Cubiche/Infrastructure/Repository/Tests/Units/Doctrine/ODM/MongoDB/Cache/
src/Cubiche/Infrastructure/Repository/Doctrine/Tests/Units/ODM/MongoDB/Proxies/
src/Cubiche/Infrastructure/Repository/Doctrine/Tests/Units/ODM/MongoDB/Hydrators/
src/Cubiche/Infrastructure/Repository/Doctrine/Tests/Units/ODM/MongoDB/Cache/
src/Cubiche/Domain/EventSourcing/Tests/Units/Migrations/Cli/Migrations/
src/Cubiche/Domain/EventSourcing/Tests/Units/Migrations/Cache/

Expand Down
20 changes: 20 additions & 0 deletions src/Cubiche/Infrastructure/Identity/Doctrine/.atoum.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?php

/**
* This file is part of the Cubiche package.
*
* Copyright (c) Cubiche
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
require_once __DIR__.'/.bootstrap.atoum.php';

use mageekguy\atoum\visibility\extension as Extension;

/* @var \mageekguy\atoum\configurator $script */
$script->excludeDirectoriesFromCoverage(array(__DIR__.'/vendor'));

/* @var \mageekguy\atoum\runner $runner */
$runner->addTestsFromDirectory(__DIR__.'/Tests');
$runner->addExtension(new Extension($script));
42 changes: 42 additions & 0 deletions src/Cubiche/Infrastructure/Identity/Doctrine/.atoum.travis.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
<?php

/**
* This file is part of the Cubiche package.
*
* Copyright (c) Cubiche
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
use Cubiche\Tests\Report\Coverage\Coveralls;

/* @var \mageekguy\atoum\configurator $script */
$script->addDefaultReport();

if (getenv('TRAVIS_PHP_VERSION') === '7.0') {
$script
->php('php -n -ddate.timezone=Europe/Madrid')
->noCodeCoverage()
;
} else {
if ($token = getenv('COVERALLS_REPO_TOKEN')) {
$coverallsReport = new Coveralls(__DIR__, $token);

$defaultFinder = $coverallsReport->getBranchFinder();
$coverallsReport
->setBranchFinder(function () use ($defaultFinder) {
if (($branch = getenv('TRAVIS_BRANCH')) === false) {
$branch = $defaultFinder();
}

return $branch;
})
->setServiceName(getenv('TRAVIS') ? 'travis-ci' : null)
->setServiceJobId(getenv('TRAVIS_JOB_ID') ?: null)
->addDefaultWriter()
;

/* @var \mageekguy\atoum\runner $runner */
$runner->addReport($coverallsReport);
}
}
12 changes: 12 additions & 0 deletions src/Cubiche/Infrastructure/Identity/Doctrine/.bootstrap.atoum.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?php

/**
* This file is part of the Cubiche package.
*
* Copyright (c) Cubiche
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
require_once __DIR__.'/vendor/autoload.php';
require_once __DIR__.'/vendor/atoum/atoum/scripts/runner.php';
15 changes: 15 additions & 0 deletions src/Cubiche/Infrastructure/Identity/Doctrine/.travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
language: php

sudo: false

php:
- 5.5
- 5.6
- 7.0

install:
- curl -s http://getcomposer.org/installer | php
- php composer.phar install --dev --no-interaction

script:
- vendor/bin/atoum -c .atoum.travis.php +verbose
2 changes: 2 additions & 0 deletions src/Cubiche/Infrastructure/Identity/Doctrine/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Cubiche - Identity Doctrine Adapter
[![Build Status](https://travis-ci.org/cubiche/identity-doctrine-adapter.svg?branch=master)](https://travis-ci.org/cubiche/identity-doctrine-adapter) [![Coverage Status](https://coveralls.io/repos/github/cubiche/identity-doctrine-adapter/badge.svg?branch=master)](https://coveralls.io/github/cubiche/identity-doctrine-adapter?branch=master) [![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/cubiche/identity-doctrine-adapter/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/cubiche/identity-doctrine-adapter/?branch=master)
41 changes: 41 additions & 0 deletions src/Cubiche/Infrastructure/Identity/Doctrine/composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"name": "cubiche/identity-doctrine-adapter",
"type": "library",
"description": "Identity doctrine adapter library.",
"keywords": [
"identity",
"id",
"uuid"
],
"license": "MIT",
"authors": [
{
"name": "Karel Osorio",
"email": "osorioramirez@gmail.com"
},
{
"name": "Ivannis Suárez",
"email": "ivannis.suarez@gmail.com"
}
],
"require": {
"php": "^5.5.9|^7.0",

"cubiche/identity": "dev-master",

"cubiche/doctrine-adapter": "dev-master",
"cubiche/model-doctrine-adapter": "dev-master"
},
"require-dev": {
"cubiche/tests": "dev-master"
},
"minimum-stability": "dev",
"autoload": {
"exclude-from-classmap": [
"/Tests/"
],
"psr-4": {
"Cubiche\\Infrastructure\\Identity\\Doctrine\\": ""
}
}
}
2 changes: 2 additions & 0 deletions src/Cubiche/Infrastructure/Identity/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Cubiche - Identity Adapter
[![Build Status](https://travis-ci.org/cubiche/identity-adapter.svg?branch=master)](https://travis-ci.org/cubiche/identity-adapter) [![Coverage Status](https://coveralls.io/repos/github/cubiche/identity-adapter/badge.svg?branch=master)](https://coveralls.io/github/cubiche/identity-adapter?branch=master) [![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/cubiche/identity-adapter/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/cubiche/identity-adapter/?branch=master)
41 changes: 41 additions & 0 deletions src/Cubiche/Infrastructure/Identity/composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"name": "cubiche/identity-adapter",
"type": "library",
"description": "Identity adapter library.",
"keywords": [
"identity",
"id",
"uuid"
],
"license": "MIT",
"authors": [
{
"name": "Karel Osorio",
"email": "osorioramirez@gmail.com"
},
{
"name": "Ivannis Suárez",
"email": "ivannis.suarez@gmail.com"
}
],
"require": {
"php": "^5.5.9|^7.0",

"cubiche/identity": "dev-master",

"cubiche/doctrine-adapter": "dev-master",
"cubiche/model-doctrine-adapter": "dev-master"
},
"require-dev": {
"cubiche/tests": "dev-master"
},
"minimum-stability": "dev",
"autoload": {
"exclude-from-classmap": [
"/Tests/"
],
"psr-4": {
"Cubiche\\Infrastructure\\Identity\\": ""
}
}
}
20 changes: 20 additions & 0 deletions src/Cubiche/Infrastructure/Model/Doctrine/.atoum.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?php

/**
* This file is part of the Cubiche package.
*
* Copyright (c) Cubiche
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
require_once __DIR__.'/.bootstrap.atoum.php';

use mageekguy\atoum\visibility\extension as Extension;

/* @var \mageekguy\atoum\configurator $script */
$script->excludeDirectoriesFromCoverage(array(__DIR__.'/vendor'));

/* @var \mageekguy\atoum\runner $runner */
$runner->addTestsFromDirectory(__DIR__.'/Tests');
$runner->addExtension(new Extension($script));
42 changes: 42 additions & 0 deletions src/Cubiche/Infrastructure/Model/Doctrine/.atoum.travis.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
<?php

/**
* This file is part of the Cubiche package.
*
* Copyright (c) Cubiche
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
use Cubiche\Tests\Report\Coverage\Coveralls;

/* @var \mageekguy\atoum\configurator $script */
$script->addDefaultReport();

if (getenv('TRAVIS_PHP_VERSION') === '7.0') {
$script
->php('php -n -ddate.timezone=Europe/Madrid')
->noCodeCoverage()
;
} else {
if ($token = getenv('COVERALLS_REPO_TOKEN')) {
$coverallsReport = new Coveralls(__DIR__, $token);

$defaultFinder = $coverallsReport->getBranchFinder();
$coverallsReport
->setBranchFinder(function () use ($defaultFinder) {
if (($branch = getenv('TRAVIS_BRANCH')) === false) {
$branch = $defaultFinder();
}

return $branch;
})
->setServiceName(getenv('TRAVIS') ? 'travis-ci' : null)
->setServiceJobId(getenv('TRAVIS_JOB_ID') ?: null)
->addDefaultWriter()
;

/* @var \mageekguy\atoum\runner $runner */
$runner->addReport($coverallsReport);
}
}
12 changes: 12 additions & 0 deletions src/Cubiche/Infrastructure/Model/Doctrine/.bootstrap.atoum.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?php

/**
* This file is part of the Cubiche package.
*
* Copyright (c) Cubiche
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
require_once __DIR__.'/vendor/autoload.php';
require_once __DIR__.'/vendor/atoum/atoum/scripts/runner.php';
15 changes: 15 additions & 0 deletions src/Cubiche/Infrastructure/Model/Doctrine/.travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
language: php

sudo: false

php:
- 5.5
- 5.6
- 7.0

install:
- curl -s http://getcomposer.org/installer | php
- php composer.phar install --dev --no-interaction

script:
- vendor/bin/atoum -c .atoum.travis.php +verbose
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

namespace Cubiche\Infrastructure\Model\Doctrine\Common\Types;

use Cubiche\Domain\Model\ValueObjectInterface;
Expand All @@ -29,7 +30,7 @@ public function toDatabaseValue(ValueObjectInterface $value);
/**
* @param mixed $value
*
* @return Cubiche\Domain\Model\ValueObjectInterface
* @return ValueObjectInterface
*/
public function fromDatabaseValue($value);
}
2 changes: 2 additions & 0 deletions src/Cubiche/Infrastructure/Model/Doctrine/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Cubiche - Model Doctrine Adapter
[![Build Status](https://travis-ci.org/cubiche/model-doctrine-adapter.svg?branch=master)](https://travis-ci.org/cubiche/model-doctrine-adapter) [![Coverage Status](https://coveralls.io/repos/github/cubiche/model-doctrine-adapter/badge.svg?branch=master)](https://coveralls.io/github/cubiche/model-doctrine-adapter?branch=master) [![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/cubiche/model-doctrine-adapter/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/cubiche/model-doctrine-adapter/?branch=master)
39 changes: 39 additions & 0 deletions src/Cubiche/Infrastructure/Model/Doctrine/composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"name": "cubiche/model-doctrine-adapter",
"type": "library",
"description": "Model doctrine adapter library.",
"keywords": [
"model",
"entity",
"aggregateroot"
],
"license": "MIT",
"authors": [
{
"name": "Karel Osorio",
"email": "osorioramirez@gmail.com"
},
{
"name": "Ivannis Suárez",
"email": "ivannis.suarez@gmail.com"
}
],
"require": {
"php": "^5.5.9|^7.0",

"cubiche/model": "dev-master",
"cubiche/doctrine-adapter": "dev-master"
},
"require-dev": {
"cubiche/tests": "dev-master"
},
"minimum-stability": "dev",
"autoload": {
"exclude-from-classmap": [
"/Tests/"
],
"psr-4": {
"Cubiche\\Infrastructure\\Model\\Doctrine\\": ""
}
}
}
2 changes: 2 additions & 0 deletions src/Cubiche/Infrastructure/Model/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Cubiche - Model Adapter
[![Build Status](https://travis-ci.org/cubiche/model-adapter.svg?branch=master)](https://travis-ci.org/cubiche/model-adapter) [![Coverage Status](https://coveralls.io/repos/github/cubiche/model-adapter/badge.svg?branch=master)](https://coveralls.io/github/cubiche/model-adapter?branch=master) [![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/cubiche/model-adapter/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/cubiche/model-adapter/?branch=master)
39 changes: 39 additions & 0 deletions src/Cubiche/Infrastructure/Model/composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"name": "cubiche/model-adapter",
"type": "library",
"description": "Model adapter library.",
"keywords": [
"model",
"entity",
"aggregateroot"
],
"license": "MIT",
"authors": [
{
"name": "Karel Osorio",
"email": "osorioramirez@gmail.com"
},
{
"name": "Ivannis Suárez",
"email": "ivannis.suarez@gmail.com"
}
],
"require": {
"php": "^5.5.9|^7.0",

"cubiche/model": "dev-master",
"cubiche/doctrine-adapter": "dev-master"
},
"require-dev": {
"cubiche/tests": "dev-master"
},
"minimum-stability": "dev",
"autoload": {
"exclude-from-classmap": [
"/Tests/"
],
"psr-4": {
"Cubiche\\Infrastructure\\Model\\": ""
}
}
}

0 comments on commit f25a789

Please sign in to comment.