Skip to content
Snippets Groups Projects
Commit e14d7422 authored by Anastaszor's avatar Anastaszor
Browse files

Harmonization 2023-06-17 Updated git ci workflow

parent e60999a2
Branches
Tags 5.0.1
No related merge requests found
Pipeline #903266173 passed
......@@ -3,6 +3,9 @@
default:
interruptible: true
stages:
- test
variables:
ARTIFACT_DOWNLOAD_ATTEMPTS: 3
EXECUTOR_JOB_SECTION_ATTEMPTS: 3
......@@ -12,10 +15,7 @@ variables:
ARTIFACT_COMPRESSION_LEVEL: "fast"
CACHE_COMPRESSION_LEVEL: "fastest"
CACHE_REQUEST_TIMEOUT: 5
stages:
- test
XDEBUG_MODE: coverage
# // ---- Jobs ---- \\ #
# Find container registries images at
......
<?xml version="1.0" ?>
<psalm
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="https://getpsalm.org/schema/config"
xsi:schemaLocation="https://raw.githubusercontent.com/vimeo/psalm/master/config.xsd"
xsi:schemaLocation="https://psalm.dev https://psalm.dev/schema/config"
xmlns:xi="http://www.w3.org/2001/XInclude"
errorLevel="1"
......
......@@ -55,12 +55,17 @@ get_release_url() {
local API_URL
local RELEASE_URL
if [ "$2" == "phpunit" ]
then
echo "https://phar.phpunit.de/phpunit-9.phar"
else
check_install "curl"
check_install "jq"
check_install "sed"
API_URL="https://api.github.com/repos/$1/$2/releases"
RELEASE_URL=$(curl --location --progress-bar --fail --show-error "$API_URL" | jq '[.[]|.assets|.[]|.browser_download_url][0]' | sed 's/"//g')
echo "$RELEASE_URL"
fi
}
# Ensures that the given phar file is correctly installed
......@@ -132,6 +137,7 @@ composer_install_retry() {
while [[ $LOOP < $1 && "$RET" != "0" ]]
do
sleep "$((39 * (LOOP + 1)))s"
LOOP=$((LOOP + 1))
composer_install
RET=$?
done
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment