Skip to content

Commit

Permalink
Catch PHP command-line errors in CircleCI.
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronweeden committed Dec 6, 2023
1 parent d3904ba commit f4e9c82
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -135,12 +135,20 @@ jobs:
- run:
name: Run Regression Tests
command: ./tests/regression/runtests.sh --junit-output-dir ~/phpunit
- run:
name: Ensure that no PHP command-line errors were generated
command: >
if [ -e /var/log/php_errors.log ]; then
test `fgrep -v 'vendor/phpunit/phpunit/src' /var/log/php_errors.log | wc -l` = 0;
fi
- store_artifacts:
path: /tmp/screenshots
- store_artifacts:
path: /var/log/xdmod
- store_artifacts:
path: /var/log/php-fpm
- store_artifacts:
path: /var/log/php_errors.log
- store_test_results:
path: ~/phpunit

Expand Down

0 comments on commit f4e9c82

Please sign in to comment.