Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create the Composer package and set up code quality configuration.
- Loading branch information
Jan-Marten de Boer
committed
Mar 23, 2018
0 parents
commit 2382f82
Showing
7 changed files
with
110 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
/vendor/ | ||
/composer.lock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
image: srcoder/development-php:php72-fpm | ||
definitions: | ||
caches: | ||
vendor: vendor | ||
pipelines: | ||
default: | ||
- step: | ||
name: Composer validation | ||
script: | ||
- composer self-update | ||
- composer check-platform-reqs | ||
- composer validate --strict --no-interaction | ||
|
||
- step: | ||
name: Testing suite | ||
caches: | ||
- composer | ||
- vendor | ||
script: | ||
- composer self-update | ||
- if [ -n "$COMPOSER_PRE_INSTALL_CALLBACK" ]; then eval $COMPOSER_PRE_INSTALL_CALLBACK; fi | ||
- composer install --dev --prefer-dist --no-scripts --no-progress --optimize-autoloader --no-interaction -vvv | ||
- composer show | ||
- composer exec -v grumphp run |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
{ | ||
"name": "mediact/static-production-dependency-prototype", | ||
"description": "A prototype package to test static production dependency analysis tooling.", | ||
"type": "library", | ||
"license": "proprietary", | ||
"authors": [ | ||
{ | ||
"name": "MediaCT", | ||
"email": "info@mediact.nl" | ||
}, | ||
{ | ||
"name": "Jan-Marten de Boer", | ||
"role": "developer" | ||
}, | ||
{ | ||
"name": "Ashoka de Wit", | ||
"role": "developer" | ||
} | ||
], | ||
"minimum-stability": "stable", | ||
"require": { | ||
"php": "^7.2", | ||
"symfony/symfony": "^4.0", | ||
"nikic/php-parser": "^3.0" | ||
}, | ||
"require-dev": { | ||
"mediact/testing-suite": "@stable" | ||
}, | ||
"extra": { | ||
"grumphp": { | ||
"config-default-path": "vendor/mediact/testing-suite/config/default/grumphp.yml" | ||
} | ||
}, | ||
"archive": { | ||
"exclude": [ | ||
"/.gitignore", | ||
"/phpunit.xml", | ||
"/phpmd.xml", | ||
"/phpstan.neon", | ||
"/phpcs.xml", | ||
"/bitbucket-pipelines.yml" | ||
] | ||
}, | ||
"config": { | ||
"sort-packages": true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?xml version="1.0"?> | ||
<ruleset name="PHPCS" | ||
xmlns="http://pmd.sf.net/ruleset/1.0.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://pmd.sf.net/ruleset/1.0.0 http://pmd.sf.net/ruleset_xml_schema.xsd" | ||
xsi:noNamespaceSchemaLocation="http://pmd.sf.net/ruleset_xml_schema.xsd"> | ||
<description>PHPCS</description> | ||
<!--<exclude-pattern>path/to/exclude/*</exclude-pattern>--> | ||
<rule ref="./vendor/mediact/coding-standard/src/MediaCT"/> | ||
</ruleset> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?xml version="1.0"?> | ||
<ruleset name="PHPMD" | ||
xmlns="http://pmd.sf.net/ruleset/1.0.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://pmd.sf.net/ruleset/1.0.0 http://pmd.sf.net/ruleset_xml_schema.xsd" | ||
xsi:noNamespaceSchemaLocation="http://pmd.sf.net/ruleset_xml_schema.xsd"> | ||
<description>PHPMD</description> | ||
<!--<exclude-pattern>path/to/exclude/*</exclude-pattern>--> | ||
<rule ref="./vendor/mediact/coding-standard/src/MediaCT/phpmd.xml" /> | ||
</ruleset> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
parameters: | ||
excludes_analyse: | ||
# - %rootDir%/../../../path/to/exclude/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd" | ||
bootstrap="vendor/autoload.php"> | ||
<testsuites> | ||
<testsuite name="default"> | ||
<directory>tests</directory> | ||
</testsuite> | ||
</testsuites> | ||
<filter> | ||
<whitelist processUncoveredFilesFromWhitelist="true"> | ||
<directory suffix=".php">src</directory> | ||
</whitelist> | ||
</filter> | ||
</phpunit> |