-
Notifications
You must be signed in to change notification settings - Fork 260
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into nelmiodoc_copy_as_installing_user
- Loading branch information
Showing
408 changed files
with
26,333 additions
and
5,272 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
#!/bin/sh | ||
|
||
# Store artifacts/logs | ||
export ARTIFACTS="/tmp/artifacts" | ||
mkdir -p "$ARTIFACTS" | ||
|
||
# Functions to annotate the Github actions logs | ||
trace_on () { | ||
set -x | ||
} | ||
trace_off () { | ||
{ | ||
set +x | ||
} 2>/dev/null | ||
} | ||
|
||
section_start_internal () { | ||
echo "::group::$1" | ||
trace_on | ||
} | ||
|
||
section_end_internal () { | ||
echo "::endgroup::" | ||
trace_on | ||
} | ||
|
||
mysql_root () { | ||
# shellcheck disable=SC2086 | ||
echo "$1" | mysql -uroot -proot ${2:-} | tee -a "$ARTIFACTS"/mysql.txt | ||
} | ||
|
||
mysql_user () { | ||
# shellcheck disable=SC2086 | ||
echo "$1" | mysql -udomjudge -pdomjudge ${2:-} | tee -a "$ARTIFACTS"/mysql.txt | ||
} | ||
|
||
section_start () { | ||
if [ "$#" -ne 1 ]; then | ||
echo "Only 1 argument is needed for GHA, 2 was needed for GitLab." | ||
exit 1 | ||
fi | ||
trace_off | ||
section_start_internal "$1" | ||
} | ||
|
||
section_end () { | ||
trace_off | ||
section_end_internal | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/sh | ||
|
||
set -eux | ||
|
||
. .github/jobs/ci_settings.sh | ||
|
||
section_start "Configure PHP" | ||
PHPVERSION=$(php -r 'echo PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION."\n";') | ||
export PHPVERSION | ||
echo "$PHPVERSION" | tee -a "$ARTIFACTS"/phpversion.txt | ||
section_end | ||
|
||
section_start "Run composer" | ||
cd webapp | ||
composer install --no-scripts 2>&1 | tee -a "$ARTIFACTS/composer_log.txt" | ||
section_end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"chromeLaunchConfig": { | ||
"args": [ | ||
"--no-sandbox", | ||
"--disable-setuid-sandbox", | ||
"--disable-dev-shm-usage" | ||
] | ||
} | ||
} |
Oops, something went wrong.