Skip to content

Commit 7d59f90

Browse files
committed
adding infrastructure;
1 parent b9616ba commit 7d59f90

File tree

6 files changed

+103
-0
lines changed

6 files changed

+103
-0
lines changed

.gitattributes

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
/.gitattributes export-ignore
2+
/.gitignore export-ignore
3+
/.phpunit.xml.dist export-ignore
4+
/.scrutinizer.yml export-ignore
5+
/.travix.yml export-ignore
6+
/phpmd.xml.dist export-ignore
7+
/README.md export-ignore
8+
/tests export-ignore

.scrutinizer.yml

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
tools:
2+
external_code_coverage:
3+
timeout: 600
4+
php_code_coverage:
5+
enabled: true
6+
php_code_sniffer:
7+
enabled: true
8+
config:
9+
standard: PSR2
10+
php_cpd:
11+
enabled: true
12+
excluded_dirs: ["docs", "examples", "tests", "vendor"]
13+
php_cs_fixer:
14+
enabled: true
15+
config:
16+
level: psr2
17+
php_loc:
18+
enabled: true
19+
excluded_dirs: ["docs", "examples", "tests", "vendor"]
20+
php_mess_detector:
21+
enabled: true
22+
config:
23+
ruleset: phpmd.xml.dist
24+
design_rules: { eval_expression: false }
25+
php_pdepend:
26+
enabled: true
27+
excluded_dirs: ["docs", "examples", "tests", "vendor"]
28+
php_analyzer:
29+
enabled: true
30+
php_hhvm:
31+
enabled: true
32+
sensiolabs_security_checker: true

.travis.yml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
language: php
2+
3+
php:
4+
- "7.2"
5+
- "7.1"
6+
7+
install: composer install
8+
9+
before_script:
10+
- mysql -e 'create database dataflow;'
11+
- cp -f tests/functional/config/Db/db-config.travis.php tests/functional/config/Db/db-config.php
12+
13+
script:
14+
- vendor/bin/phpunit --report-useless-tests --coverage-clover ./coverage.clover
15+
16+
after_script:
17+
- wget https://scrutinizer-ci.com/ocular.phar
18+
- php ocular.phar code-coverage:upload --format=php-clover ./coverage.clover
19+
20+
notifications:
21+
email: true
22+
23+
matrix:
24+
fast_finish: true

phpmd.xml.dist

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?xml version="1.0" encoding="UTF-8" ?>
2+
<ruleset
3+
name="General Rules"
4+
xmlns="http://pmd.sf.net/ruleset/1.0.0"
5+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
6+
xsi:schemaLocation="http://pmd.sf.net/ruleset/1.0.0 http://pmd.sf.net/ruleset_xml_schema.xsd"
7+
xsi:noNamespaceSchemaLocation="http://pmd.sf.net/ruleset_xml_schema.xsd"
8+
>
9+
<rule ref="rulesets/codesize.xml"/>
10+
<rule ref="rulesets/unusedcode.xml"/>
11+
<rule ref="rulesets/design.xml"/>
12+
<rule ref="rulesets/naming.xml"/>
13+
</ruleset>

phpunit.xml.dist

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<phpunit colors="true"
3+
beStrictAboutTestsThatDoNotTestAnything="true">
4+
<testsuites>
5+
<testsuite name="unit">
6+
<directory>./tests/unit</directory>
7+
</testsuite>
8+
<testsuite name="functional">
9+
<directory>./tests/functional</directory>
10+
</testsuite>
11+
</testsuites>
12+
<filter>
13+
<whitelist processUncoveredFilesFromWhitelist="true">
14+
<directory suffix=".php">./src</directory>
15+
</whitelist>
16+
</filter>
17+
</phpunit>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?php
2+
declare(strict_types=1);
3+
4+
/**
5+
* @docs at http://docs.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html
6+
*/
7+
return [
8+
'url' => 'mysql://[email protected]:3306/dataflow?charset=UTF8',
9+
];

0 commit comments

Comments
 (0)