Merge pull request #4066 from CachetHQ/rm-cov

Disable code coverage runs
This commit is contained in:
James Brooks
2020-08-01 09:05:02 +01:00
committed by GitHub
2 changed files with 5 additions and 7 deletions

View File

@@ -36,10 +36,3 @@ jobs:
- phpenv config-rm xdebug.ini || true - phpenv config-rm xdebug.ini || true
- vendor/bin/phpunit - vendor/bin/phpunit
php: 7.3 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

View File

@@ -123,14 +123,19 @@ class IncidentUpdatePresenter extends BasePresenter implements Arrayable
{ {
switch ($this->wrappedObject->status) { switch ($this->wrappedObject->status) {
case 1: // Investigating case 1: // Investigating
return 'icon ion-flag oranges'; return 'icon ion-flag oranges';
case 2: // Identified case 2: // Identified
return 'icon ion-alert yellows'; return 'icon ion-alert yellows';
case 3: // Watching case 3: // Watching
return 'icon ion-eye blues'; return 'icon ion-eye blues';
case 4: // Fixed case 4: // Fixed
return 'icon ion-checkmark greens'; return 'icon ion-checkmark greens';
default: // Something actually broke, this shouldn't happen. default: // Something actually broke, this shouldn't happen.
return ''; return '';
} }
} }