Skip to content
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

Disable code coverage runs #4066

Merged
merged 2 commits into from
Aug 1, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,3 @@ jobs:
- phpenv config-rm xdebug.ini || true
- vendor/bin/phpunit
php: 7.3
- stage: Code coverage
script:
- phpenv config-rm xdebug.ini || true
- phpdbg -qrr vendor/bin/phpunit --coverage-text --coverage-clover build/logs/clover.xml
- if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then wget https://scrutinizer-ci.com/ocular.phar; fi
- if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml; fi
php: 7.1
5 changes: 5 additions & 0 deletions app/Presenters/IncidentUpdatePresenter.php
Original file line number Diff line number Diff line change
Expand Up @@ -123,14 +123,19 @@ public function icon()
{
switch ($this->wrappedObject->status) {
case 1: // Investigating

return 'icon ion-flag oranges';
case 2: // Identified

return 'icon ion-alert yellows';
case 3: // Watching

return 'icon ion-eye blues';
case 4: // Fixed

return 'icon ion-checkmark greens';
default: // Something actually broke, this shouldn't happen.

return '';
}
}
Expand Down