Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Laminas continuous integration #16

Merged
merged 14 commits into from
Sep 6, 2022
3 changes: 2 additions & 1 deletion .coveralls.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# for php-coveralls
service_name: travis-ci
coverage_clover: build/logs/clover.xml
coverage_clover: clover.xml
json_path: coveralls-upload.json
11 changes: 11 additions & 0 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: "Continuous Integration"

on:
pull_request:
push:
branches:
tags:

jobs:
ci:
uses: laminas/workflow-continuous-integration/.github/workflows/[email protected]
10 changes: 9 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,12 @@
.php_cs.cache
nbproject
composer.lock
docs/html
docs/html

.phpunit.result.cache
/clover.xml
/coveralls-upload.json
/phpunit.xml
/vendor/
.phpunit.result.cache
.phpcs-cache
5 changes: 5 additions & 0 deletions .laminas-ci.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"additional_composer_arguments": [
"--prefer-stable"
]
}
8 changes: 8 additions & 0 deletions .php-cs-fixer.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?php

$config = new Prooph\CS\Config\Prooph();
$config->getFinder()->in(__DIR__);

$config->setCacheFile(__DIR__ . '/.php_cs.cache');

return $config;
10 changes: 0 additions & 10 deletions .php_cs

This file was deleted.

52 changes: 0 additions & 52 deletions .travis.yml

This file was deleted.

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Standard Projections for Prooph EventStore

[![Build Status](https://travis-ci.org/prooph/standard-projections.svg?branch=master)](https://travis-ci.org/prooph/standard-projections)
[![Continuous Integration](https://github.com/prooph/standard-projections/actions/workflows/continuous-integration.yml/badge.svg)](https://github.com/prooph/standard-projections/actions/workflows/continuous-integration.yml)
[![Coverage Status](https://coveralls.io/repos/prooph/standard-projections/badge.svg?branch=master&service=github)](https://coveralls.io/github/prooph/standard-projections?branch=master)
[![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/prooph/improoph)

Expand All @@ -12,7 +12,7 @@ or by message name (`MessageNameStreamProjectionRunner`). See docs for more info

## Requirements

- PHP >= 7.1
- PHP >= 7.4
- Prooph EventStore v7

## Documentation
Expand Down
28 changes: 19 additions & 9 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,16 @@
"minimum-stability": "dev",
"prefer-stable": true,
"require": {
"php": "^7.1",
"prooph/event-store": "^7.3.1"
"php": "^7.4 || ~8.0.0",
"prooph/event-store": "^7.5.3"
},
"require-dev": {
"prooph/pdo-event-store": "^1.6",
"phpunit/phpunit": "^6.0",
"phpspec/prophecy": "^1.7",
"friendsofphp/php-cs-fixer": "2.8.4",
"prooph/php-cs-fixer-config": "^0.3",
"satooshi/php-coveralls": "^1.0",
"prooph/bookdown-template": "^0.2.3"
"php-coveralls/php-coveralls": "^2.2",
"phpspec/prophecy": "^1.10.3",
"phpunit/phpunit": "^9.5",
"prooph/bookdown-template": "^0.2.3",
"prooph/pdo-event-store": "^1.11",
"prooph/php-cs-fixer-config": "^0.5"
},
"suggest": {
"prooph/pdo-event-store": "^1.6 for usage with MariaDB, MySQL or Postgres as event store"
Expand All @@ -47,8 +46,19 @@
}
},
"config": {
"sort-packages": true,
"preferred-install": {
"prooph/*": "source"
}
},
"scripts": {
"check": [
"@cs-check",
"@test"
],
"cs-check": "php-cs-fixer fix -v --diff --dry-run",
"cs-fix": "php-cs-fixer fix -v --diff",
"test": "phpunit --colors=always",
"test-coverage": "phpunit --colors=always --coverage-clover clover.xml"
}
}
22 changes: 0 additions & 22 deletions phpunit.xml

This file was deleted.

14 changes: 14 additions & 0 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd" bootstrap="vendor/autoload.php" convertDeprecationsToExceptions="true" colors="true">
<coverage processUncoveredFiles="true">
<include>
<directory suffix=".php">./src</directory>
</include>
</coverage>

<testsuites>
<testsuite name="Standard Projections for Prooph EventStore">
<directory>./tests</directory>
</testsuite>
</testsuites>
</phpunit>
4 changes: 2 additions & 2 deletions src/AllStreamProjectionRunner.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

/**
* This file is part of prooph/standard-projections.
* (c) 2016-2018 prooph software GmbH <[email protected]>
* (c) 2016-2018 Sascha-Oliver Prolic <[email protected]>
* (c) 2016-2022 prooph software GmbH <[email protected]>
* (c) 2016-2022 Sascha-Oliver Prolic <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
Expand Down
4 changes: 2 additions & 2 deletions src/CategoryStreamProjectionRunner.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

/**
* This file is part of prooph/standard-projections.
* (c) 2016-2018 prooph software GmbH <[email protected]>
* (c) 2016-2018 Sascha-Oliver Prolic <[email protected]>
* (c) 2016-2022 prooph software GmbH <[email protected]>
* (c) 2016-2022 Sascha-Oliver Prolic <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
Expand Down
4 changes: 2 additions & 2 deletions src/MessageNameStreamProjectionRunner.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

/**
* This file is part of prooph/standard-projections.
* (c) 2016-2018 prooph software GmbH <[email protected]>
* (c) 2016-2018 Sascha-Oliver Prolic <[email protected]>
* (c) 2016-2022 prooph software GmbH <[email protected]>
* (c) 2016-2022 Sascha-Oliver Prolic <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
Expand Down
12 changes: 6 additions & 6 deletions tests/AllStreamProjectionRunnerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

/**
* This file is part of prooph/standard-projections.
* (c) 2016-2018 prooph software GmbH <[email protected]>
* (c) 2016-2018 Sascha-Oliver Prolic <[email protected]>
* (c) 2016-2022 prooph software GmbH <[email protected]>
* (c) 2016-2022 Sascha-Oliver Prolic <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
Expand Down Expand Up @@ -93,22 +93,22 @@ public function it_emits_events_for_all_streams()
$streamEvents->next();
$event = $streamEvents->current();

$this->assertEquals(['3'], $event->payload());
$this->assertEquals(['a'], $event->payload());

$streamEvents->next();
$event = $streamEvents->current();

$this->assertEquals(['4'], $event->payload());
$this->assertEquals(['b'], $event->payload());

$streamEvents->next();
$event = $streamEvents->current();

$this->assertEquals(['a'], $event->payload());
$this->assertEquals(['3'], $event->payload());

$streamEvents->next();
$event = $streamEvents->current();

$this->assertEquals(['b'], $event->payload());
$this->assertEquals(['4'], $event->payload());

$streamEvents->next();
$event = $streamEvents->current();
Expand Down
4 changes: 2 additions & 2 deletions tests/CategoryStreamProjectionRunnerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

/**
* This file is part of prooph/standard-projections.
* (c) 2016-2018 prooph software GmbH <[email protected]>
* (c) 2016-2018 Sascha-Oliver Prolic <[email protected]>
* (c) 2016-2022 prooph software GmbH <[email protected]>
* (c) 2016-2022 Sascha-Oliver Prolic <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
Expand Down
4 changes: 2 additions & 2 deletions tests/MessageNameStreamProjectionRunnerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

/**
* This file is part of prooph/standard-projections.
* (c) 2016-2018 prooph software GmbH <[email protected]>
* (c) 2016-2018 Sascha-Oliver Prolic <[email protected]>
* (c) 2016-2022 prooph software GmbH <[email protected]>
* (c) 2016-2022 Sascha-Oliver Prolic <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
Expand Down
4 changes: 2 additions & 2 deletions tests/Mock/TestDomainEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

/**
* This file is part of prooph/standard-projections.
* (c) 2016-2018 prooph software GmbH <[email protected]>
* (c) 2016-2018 Sascha-Oliver Prolic <[email protected]>
* (c) 2016-2022 prooph software GmbH <[email protected]>
* (c) 2016-2022 Sascha-Oliver Prolic <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
Expand Down