Skip to content

Commit

Permalink
Merge branch 'release/0.1.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
luchaos committed Apr 19, 2019
2 parents 152f066 + ab03b99 commit 25176f0
Show file tree
Hide file tree
Showing 11 changed files with 83 additions and 40 deletions.
28 changes: 16 additions & 12 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,26 @@
language: php
sudo: false

php:
- '7.1'
- '7.2'
- "7.1"
- "7.2"
- "7.3"

cache:
directories:
- "$HOME/.composer/cache"
before_script:
- composer install --prefer-dist --no-interaction
- composer require --dev php-coveralls/php-coveralls
- $HOME/.composer/cache

install:
- composer install --prefer-dist --no-interaction

script:
- mkdir -p build/logs
- vendor/bin/phpunit --coverage-clover build/logs/clover.xml
- vendor/bin/php-cs-fixer fix --config=vendor/ixocreate/coding-standard/.php_cs -v --dry-run --using-cache=no --path-mode=intersection
`git diff --name-only --diff-filter=ACMRTUXB $TRAVIS_COMMIT_RANGE`
- if [ $TRAVIS_PHP_VERSION = '7.2' ]; then vendor/bin/phpunit --coverage-clover build/logs/clover.xml; else vendor/bin/phpunit; fi
- if [ $TRAVIS_PHP_VERSION = '7.2' ]; then vendor/bin/php-cs-fixer fix --config=vendor/ixocreate/coding-standard/.php_cs -v --dry-run --using-cache=no --path-mode=intersection `git diff --name-only --diff-filter=ACMRTUXB $TRAVIS_COMMIT_RANGE`; fi

after_success:
- travis_retry php vendor/bin/php-coveralls -v
- if [ $TRAVIS_PHP_VERSION = '7.2' ]; then php vendor/bin/php-coveralls -v; fi

notifications:
email: false
slack:
secure: D8n3a+huB9ZEBE3pILS4ObLAtjW+OTCJUUgVL8aQ9q19N1XI9nd+dS5AEyluWPyTnvFdBHaT7aTNog5RMvSE8jrrW5+9L0lx++qLelSd5qrtnQB0zLtUR0HEaxn6LEQ8cUbch8o3vOy0w5EsFI6v+EQugByrHdCj64P14Tj9YpE57kSMjYBfh6jVbMg7a9XRkk8stx0VluQgQSJuKYQ/B2T8gkxKc+Q49e7frG2eq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dbMrjtKORciCy2GOQ+GxOmeVoHseT9doMFGQUYv67oUzeBIggZMHTreqvBXdi7g="
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Release Notes

## [Unreleased](https://github.com/ixocreate/filter-package/compare/0.1.0...develop)

## [v0.1.0 (2019-04-19)](https://github.com/ixocreate/filter-package/compare/master...0.1.0)

### Changed
- Consolidate Package
26 changes: 19 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
# IXOCREATE filter
# IXOCREATE Filter Package

[![Build Status](https://travis-ci.com/ixocreate/filter.svg?branch=master)](https://travis-ci.com/ixocreate/filter)
[![Coverage Status](https://coveralls.io/repos/github/ixocreate/filter/badge.svg?branch=develop)](https://coveralls.io/github/ixocreate/filter?branch=develop)
[![Packagist](https://img.shields.io/packagist/v/ixocreate/filter.svg)](https://packagist.org/packages/ixocreate/filter)
[![Packagist Pre Release](https://img.shields.io/packagist/vpre/ixocreate/filter.svg)](https://packagist.org/packages/ixocreate/filter)
[![Packagist](https://img.shields.io/packagist/l/ixocreate/filter.svg)](https://packagist.org/packages/ixocreate/filter)
[![Build Status](https://travis-ci.com/ixocreate/filter-package.svg?branch=master)](https://travis-ci.com/ixocreate/filter-package)
[![Coverage Status](https://coveralls.io/repos/github/ixocreate/filter-package/badge.svg?branch=develop)](https://coveralls.io/github/ixocreate/filter-package?branch=develop)
[![Packagist](https://img.shields.io/packagist/v/ixocreate/filter-package.svg)](https://packagist.org/packages/ixocreate/filter-package)
[![PHP Version](https://img.shields.io/packagist/php-v/ixocreate/filter-package.svg)](https://packagist.org/packages/ixocreate/filter-package)
[![License](https://img.shields.io/github/license/ixocreate/filter-package.svg)](LICENSE)

## Installation

Install the package via composer:

```sh
composer require ixocreate/filter
composer require ixocreate/filter-package
```

## Testing
Expand All @@ -21,6 +21,18 @@ composer install --dev
phpunit
```

## Documentation

Learn more about IXOCREATE by reading its [Documentation](https://ixocreate.github.io/).

## Changelog

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

## Security Vulnerabilities

If you discover security vulnerabilities, please address issues directly to opensource@ixocreate.com via e-mail.

## License

The MIT License (MIT). Please see [LICENSE](LICENSE) for more information.
4 changes: 4 additions & 0 deletions bootstrap/servicemanager.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
<?php
declare(strict_types=1);

namespace Ixocreate\Filter;

use Ixocreate\Application\Service\ServiceManagerConfigurator;

/** @var ServiceManagerConfigurator $serviceManager */

$serviceManager->addFactory(Filter::class);
12 changes: 6 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ixocreate/filter-package",
"description": "Filter of IXOCREATE",
"description": "IXOCREATE Filter Package",
"license": "MIT",
"type": "library",
"authors": [
Expand All @@ -12,12 +12,12 @@
"prefer-stable": true,
"require": {
"php": "^7.1",
"ixocreate/contract": "=1.0.0-alpha2"
"ixocreate/application": "^0.1"
},
"require-dev": {
"ixocreate/coding-standard": "^1.0",
"phpunit/phpunit": "^6.0.6",
"php-coveralls/php-coveralls": "^2.1"
"php-coveralls/php-coveralls": "^2.1",
"phpunit/phpunit": "^7.0"
},
"autoload": {
"psr-4": {
Expand All @@ -26,8 +26,8 @@
},
"autoload-dev": {
"psr-4": {
"IxocreateTest\\Filter\\": "tests/src/",
"IxocreateMisc\\Filter\\": "tests/misc/"
"Ixocreate\\Test\\Filter\\": "tests/src/",
"Ixocreate\\Misc\\Filter\\": "tests/misc/"
}
},
"scripts": {
Expand Down
5 changes: 2 additions & 3 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,10 @@
timeoutForSmallTests="1"
timeoutForMediumTests="10"
timeoutForLargeTests="60"
strict="true"
verbose="false"
>
<testsuites>
<testsuite name="filter test suite">
<testsuite name="IXOCREATE Test Suite">
<directory>./tests/src</directory>
</testsuite>
</testsuites>
Expand All @@ -28,4 +27,4 @@
<php>
<ini name="date.timezone" value="UTC"/>
</php>
</phpunit>
</phpunit>
2 changes: 0 additions & 2 deletions src/Filter.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@

namespace Ixocreate\Filter;

use Ixocreate\Contract\Filter\FilterableInterface;

final class Filter
{
/**
Expand Down
18 changes: 18 additions & 0 deletions src/FilterableInterface.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?php
/**
* @link https://github.com/ixocreate
* @copyright IXOCREATE GmbH
* @license MIT License
*/

declare(strict_types=1);

namespace Ixocreate\Filter;

interface FilterableInterface
{
/**
* @return FilterableInterface
*/
public function filter(): self;
}
8 changes: 4 additions & 4 deletions src/Package.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@

namespace Ixocreate\Filter;

use Ixocreate\Contract\Application\ConfiguratorRegistryInterface;
use Ixocreate\Contract\Application\PackageInterface;
use Ixocreate\Contract\Application\ServiceRegistryInterface;
use Ixocreate\Contract\ServiceManager\ServiceManagerInterface;
use Ixocreate\Application\Configurator\ConfiguratorRegistryInterface;
use Ixocreate\Application\Package\PackageInterface;
use Ixocreate\Application\Service\ServiceRegistryInterface;
use Ixocreate\ServiceManager\ServiceManagerInterface;

final class Package implements PackageInterface
{
Expand Down
4 changes: 2 additions & 2 deletions tests/src/FilterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@

declare(strict_types=1);

namespace IxocreateTest\Validator;
namespace Ixocreate\Test\Validator;

use Ixocreate\Contract\Filter\FilterableInterface;
use Ixocreate\Filter\Filter;
use Ixocreate\Filter\FilterableInterface;
use PHPUnit\Framework\TestCase;

class FilterTest extends TestCase
Expand Down
8 changes: 4 additions & 4 deletions tests/src/PackageTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@

declare(strict_types=1);

namespace IxocreateTest\Test;
namespace Ixocreate\Test\Test;

use Ixocreate\Contract\Application\ConfiguratorRegistryInterface;
use Ixocreate\Contract\Application\ServiceRegistryInterface;
use Ixocreate\Contract\ServiceManager\ServiceManagerInterface;
use Ixocreate\Application\Configurator\ConfiguratorRegistryInterface;
use Ixocreate\Application\Service\ServiceRegistryInterface;
use Ixocreate\Filter\Package;
use Ixocreate\ServiceManager\ServiceManagerInterface;
use PHPUnit\Framework\TestCase;

class PackageTest extends TestCase
Expand Down

0 comments on commit 25176f0

Please sign in to comment.