-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Scrutinizer-CI to the build pipeline #2756
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
build: | ||
environment: | ||
php: | ||
version: 7.1 | ||
|
||
before_commands: | ||
- "composer install --no-dev --prefer-source" | ||
|
||
tools: | ||
external_code_coverage: | ||
timeout: 3600 | ||
|
||
filter: | ||
excluded_paths: | ||
- docs | ||
- tools | ||
|
||
build_failure_conditions: | ||
- 'elements.rating(<= C).new.exists' # No new classes/methods with a rating of C or worse allowed | ||
- 'issues.label("coding-style").new.exists' # No new coding style issues allowed | ||
- 'issues.severity(>= MAJOR).new.exists' # New issues of major or higher severity | ||
- 'project.metric_change("scrutinizer.test_coverage", < 0)' # Code Coverage decreased from previous inspection | ||
- 'patches.label("Doc Comments").new.exists' # No new doc comments patches allowed | ||
- 'patches.label("Unused Use Statements").new.exists' # No new unused imports patches allowed |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
set -x | ||
if [ "$TRAVIS_PHP_VERSION" = '7.1' ] ; then | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This will run the code for ALL PHP 7.1 builds, it would be better to have it only for specific platform as well. |
||
wget https://scrutinizer-ci.com/ocular.phar | ||
php ocular.phar code-coverage:upload --format=php-clover ./clover.xml | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
fi |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -112,6 +112,9 @@ matrix: | |
allow_failures: | ||
- php: nightly | ||
|
||
after_script: | ||
- sh .travis.coverage.sh | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'd rather keep the config here so we won't have to maintain multiple files (kind of what we have in the ORM) |
||
|
||
install: | ||
- travis_retry composer install | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This folder doesn't exist here