Add code coverage

This commit is contained in:
Dennis Eichhorn 2018-08-12 10:12:46 +02:00
parent d89ba9832a
commit bd935810bf
4 changed files with 14 additions and 3 deletions

3
.gitignore vendored
View File

@ -1,2 +1,3 @@
*.log
.directory
.directory
vendor

View File

@ -9,9 +9,15 @@ before_script:
- composer install
- git clone -b develop https://github.com/Orange-Management/Build.git
- chmod -R 755 Build/Hooks
addons:
code_climate:
repo_token:
secure: "zXoveZL6QPXXcdyGxfgjlIRGSFbTgwi2NU6V9tROypLMA+5IWRd0CvvQkl4vx2lIAF5Pn3jOGqG6p6qinqwSzX2tE/RsdDEDz8LPKpN+AShyxLzzYu2ohDSqm3rSXysdgbjQBB1YoUIumhUGABfYIdZk+7g1Yjc3RLFdAs3YzB7CdG4zeBA1Xe82KHUDwZb2M/MG/Bf9jsi9HmjrBeMTmCiW8v6wclYG9rbkIoXY4mv4H0ywiTv4lHuyRWs19kJn4kKI3oLqmv0UcUmLv0wNgPrww2STtN/7ghlaiLNSrdKQV1EuVi/nRxxNlH2z+h8cMPAcksqZ29TT9RYkK32433QIUHYzN6t4LB8PgNkFPMc6zI6uzD9We4oYAw4bVIxkEgHXJBInfYSNRfoGPGHZ9WU+Ph9zt2nyB4mS6014gHgjBZSF+DV/r1mHa9XtXPDzxrbHJF7rIp99iOBnpGBcn4ERVhLP6onuam86TSgXjgyUrnTGazwKoc6cfwvb9RswpVtTvNJIYgzfJG6+QFAsltOSo3iRvKq+F2X3Lh/3dOAAcqh3TOZaSPee2sHCDFYq5d0qpNFJq/o6tEcPP9J6PmKsD7Ql9Zu1qNJ2MevheE/U/3sh2dy/5rhDSFCig2TRMy/53QATcCm2ngIfBJkeVyLQ2VMUsMXOk5v2uF16E6k="
script:
- vendor/bin/phpunit --version && vendor/bin/phpunit --configuration tests/phpunit_no_coverage.xml
- pwd
- ./Build/Hooks/travis.sh
after_script:
- vendor/bin/test-reporter
notifications:
email: false

View File

@ -11,6 +11,7 @@
"phpunit/phpunit": "~6.4",
"squizlabs/php_codesniffer": "~3.2",
"phpmd/phpmd": "~2.6",
"phpstan/phpstan": "~0.10.1"
"phpstan/phpstan": "~0.10.1",
"codeclimate/php-test-reporter": "^0.4.4"
}
}
}

View File

@ -28,4 +28,7 @@
</exclude>
</whitelist>
</filter>
<logging>
<log type="coverage-clover" target="build/logs/clover.xml"/>
</logging>
</phpunit>