Skip to content

Commit

Permalink
Updating CircleCI to use PHP 7.4 (#111)
Browse files Browse the repository at this point in the history
---------

Co-authored-by: Ryan Rathsam <[email protected]>
  • Loading branch information
ryanrath and spark0r authored Jun 25, 2024
1 parent 860a50f commit 37290e8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
11 changes: 10 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,15 @@ jobs:
XDMOD_INSTALL_DIR: /xdmod
XDMOD_TEST_MODE: << parameters.install-type >>
steps:
- run:
name: Enable PHP 7.4 module
command: dnf module -y reset php && dnf module -y enable php:7.4
- run:
name: Install PHP 7.4 and PHP module pre-reqs & an updated version of PHP Pear
command: dnf install -y php libzip-devel php-pear php-devel
- run:
name: Install MongoDB Pear module
command: yes '' | pecl install mongodb || true
- run:
name: Install Python3
command: dnf -y install --setopt=tsflags=nodocs python3
Expand Down Expand Up @@ -50,7 +59,7 @@ jobs:
name: Ensure that no PHP command-line errors were generated
command: >
if [ -e /var/log/php_errors.log ]; then
test `fgrep -v 'phpunit/phpunit' /var/log/php_errors.log | wc -l` = 0;
test `egrep -v "PHP Deprecated.*vendor\/.*|PHP Notice: fread()|phpunit.*" /var/log/php_errors.log | wc -l` = 0;
fi
- store_artifacts:
path: /tmp/screenshots
Expand Down
6 changes: 1 addition & 5 deletions classes/AppKernel/AppKernelIngestor.php
Original file line number Diff line number Diff line change
Expand Up @@ -565,33 +565,29 @@ public function ingestAppKernelInstances($resourceNickname)
$this->appKernelSummaryReport['parse_error']++;
$this->logger->err("Parse error: '$msg'");
$this->logger->debug("Raw instance data:\n{$akInstance->data}\n");
continue;
break;
case AppKernel\AppKernelException::Queued:
$resourceReport[$akInstance->akNickname]['queued']++;
$this->appKernelSummaryReport['queued']++;
$this->logger->notice("Queued: '$msg'");
continue;
break;
case AppKernel\AppKernelException::Error:
$resourceReport[$akInstance->akNickname]['error']++;
$this->appKernelSummaryReport['error']++;
$this->logger->err("Error: '$msg'");
continue;
break;
case AppKernel\AppKernelException::UnknownType:
$resourceReport[$akInstance->akNickname]['unknown_type']++;
$this->appKernelSummaryReport['unknown_type']++;
$this->logger->warning("Unknown Type: '$msg'");
continue;
break;
default:
$this->logger->err(array(
'message' => "AppKernelException: '$msg'",
'stacktrace' => $e->getTraceAsString(),
));
continue;
break;

}
}

Expand Down

0 comments on commit 37290e8

Please sign in to comment.