Skip to content

Commit

Permalink
attempting laminas/laminas-continuous-integration
Browse files Browse the repository at this point in the history
  • Loading branch information
basz committed Sep 5, 2022
1 parent 97763f6 commit 7dce6c4
Show file tree
Hide file tree
Showing 10 changed files with 59 additions and 80 deletions.
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]
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,11 @@
nbproject
composer.lock
docs/html

.phpunit.result.cache
/clover.xml
/coveralls-upload.json
/phpunit.xml
/vendor/
.phpunit.result.cache
.phpcs-cache
12 changes: 12 additions & 0 deletions .laminas-ci.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"additional_checks": [
{
"name": "QA Checks (PHP CS Fixer)",
"job": {
"php": "@latest",
"dependencies": "latest",
"command": "vendor/bin/php-cs-fixer fix -v --diff --dry-run"
}
}
]
}
4 changes: 1 addition & 3 deletions .php-cs-fixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
$config = new Prooph\CS\Config\Prooph();
$config->getFinder()->in(__DIR__);

$cacheDir = getenv('TRAVIS') ? getenv('HOME') . '/.php-cs-fixer' : __DIR__;

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

return $config;
52 changes: 0 additions & 52 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion 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 Down
12 changes: 11 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"minimum-stability": "dev",
"prefer-stable": true,
"require": {
"php": "^7.4|~8.0.0",
"php": "^7.4 || ~8.0.0",
"prooph/event-store": "^7.5.3"
},
"require-dev": {
Expand Down Expand Up @@ -50,5 +50,15 @@
"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>

0 comments on commit 7dce6c4

Please sign in to comment.