Skip to content

Commit 2b2968d

Browse files
authored
Merge pull request #16 from basz/laminas-continuous-integration
Laminas continuous integration
2 parents 7d2d43f + cc8aec9 commit 2b2968d

File tree

10 files changed

+52
-80
lines changed

10 files changed

+52
-80
lines changed

.coveralls.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
# for php-coveralls
22
service_name: travis-ci
3-
coverage_clover: build/logs/clover.xml
3+
coverage_clover: clover.xml
4+
json_path: coveralls-upload.json
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: "Continuous Integration"
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
tags:
8+
9+
jobs:
10+
ci:
11+
uses: laminas/workflow-continuous-integration/.github/workflows/[email protected]

.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,11 @@
77
nbproject
88
composer.lock
99
docs/html
10+
1011
.phpunit.result.cache
12+
/clover.xml
13+
/coveralls-upload.json
14+
/phpunit.xml
15+
/vendor/
16+
.phpunit.result.cache
17+
.phpcs-cache

.laminas-ci.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"additional_composer_arguments": [
3+
"--prefer-stable"
4+
]
5+
}

.php-cs-fixer.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
$config = new Prooph\CS\Config\Prooph();
44
$config->getFinder()->in(__DIR__);
55

6-
$cacheDir = getenv('TRAVIS') ? getenv('HOME') . '/.php-cs-fixer' : __DIR__;
7-
8-
$config->setCacheFile($cacheDir . '/.php_cs.cache');
6+
$config->setCacheFile(__DIR__ . '/.php_cs.cache');
97

108
return $config;

.travis.yml

Lines changed: 0 additions & 52 deletions
This file was deleted.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Standard Projections for Prooph EventStore
22

3-
[![Build Status](https://travis-ci.org/prooph/standard-projections.svg?branch=master)](https://travis-ci.org/prooph/standard-projections)
3+
[![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)
44
[![Coverage Status](https://coveralls.io/repos/prooph/standard-projections/badge.svg?branch=master&service=github)](https://coveralls.io/github/prooph/standard-projections?branch=master)
55
[![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/prooph/improoph)
66

composer.json

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"minimum-stability": "dev",
1818
"prefer-stable": true,
1919
"require": {
20-
"php": "^7.4|~8.0.0",
20+
"php": "^7.4 || ~8.0.0",
2121
"prooph/event-store": "^7.5.3"
2222
},
2323
"require-dev": {
@@ -50,5 +50,15 @@
5050
"preferred-install": {
5151
"prooph/*": "source"
5252
}
53+
},
54+
"scripts": {
55+
"check": [
56+
"@cs-check",
57+
"@test"
58+
],
59+
"cs-check": "php-cs-fixer fix -v --diff --dry-run",
60+
"cs-fix": "php-cs-fixer fix -v --diff",
61+
"test": "phpunit --colors=always",
62+
"test-coverage": "phpunit --colors=always --coverage-clover clover.xml"
5363
}
5464
}

phpunit.xml

Lines changed: 0 additions & 22 deletions
This file was deleted.

phpunit.xml.dist

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<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">
3+
<coverage processUncoveredFiles="true">
4+
<include>
5+
<directory suffix=".php">./src</directory>
6+
</include>
7+
</coverage>
8+
9+
<testsuites>
10+
<testsuite name="Standard Projections for Prooph EventStore">
11+
<directory>./tests</directory>
12+
</testsuite>
13+
</testsuites>
14+
</phpunit>

0 commit comments

Comments
 (0)