Skip to content
Snippets Groups Projects
Commit f9b4d3e7 authored by Wim Leers's avatar Wim Leers
Browse files

Specify `set -xev` in an alternative way.

parent 0c3d415c
No related branches found
No related tags found
1 merge request!722Issue #3341224: Always catch \Throwable, not \Exception and always pass the old exception when re-throwing.
This commit is part of merge request !722. Comments created here will be created in the context of that merge request.
...@@ -36,6 +36,8 @@ build: ...@@ -36,6 +36,8 @@ build:
- cat modules/contrib/automatic_updates/dictionary.txt >> core/misc/cspell/dictionary.txt - cat modules/contrib/automatic_updates/dictionary.txt >> core/misc/cspell/dictionary.txt
# Ensure we have the full path to PHPStan. # Ensure we have the full path to PHPStan.
- sed -i "s/vendor\/bin\/phpstan/\/var\/www\/html\/vendor\/bin\/phpstan/" modules/contrib/automatic_updates/commit-code-check.sh - sed -i "s/vendor\/bin\/phpstan/\/var\/www\/html\/vendor\/bin\/phpstan/" modules/contrib/automatic_updates/commit-code-check.sh
# Ensure that debugging commit-code-check.sh is feasible at all times.
- sed -i "s/# Searches an array./set -xev/" modules/contrib/automatic_updates/commit-code-check.sh
# After all of the shenanigans above, we're finally ready to run core's `commit-code-check.sh`! :) # After all of the shenanigans above, we're finally ready to run core's `commit-code-check.sh`! :)
- cat modules/contrib/automatic_updates/commit-code-check.sh - cat modules/contrib/automatic_updates/commit-code-check.sh
- diff /var/www/html/core/scripts/dev/commit-code-check.sh modules/contrib/automatic_updates/commit-code-check.sh - diff /var/www/html/core/scripts/dev/commit-code-check.sh modules/contrib/automatic_updates/commit-code-check.sh
...@@ -43,7 +45,6 @@ build: ...@@ -43,7 +45,6 @@ build:
- ls -al modules/contrib/automatic_updates/src/ - ls -al modules/contrib/automatic_updates/src/
- ls -al /var/www/html/core/ - ls -al /var/www/html/core/
- git config --global --add safe.directory /var/www/html/modules/contrib/automatic_updates - git config --global --add safe.directory /var/www/html/modules/contrib/automatic_updates
- sh -xev modules/contrib/automatic_updates/commit-code-check.sh --drupalci
# Restore the original permissions. # Restore the original permissions.
- chmod 777 modules/contrib/automatic_updates/ - chmod 777 modules/contrib/automatic_updates/
# Disable the PCRE engine's JIT, since it causes Composer to die during the # Disable the PCRE engine's JIT, since it causes Composer to die during the
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment