File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1578,9 +1578,6 @@ jobs:
15781578 name : Updating composer to v2
15791579 command : sudo composer self-update --2 --no-interaction
15801580 - install_extension
1581- - run :
1582- name : Install required packages
1583- command : sudo apt update && sudo apt install -y jq
15841581 - << : *STEP_COMPOSER_CACHE_RESTORE
15851582 - << : *STEP_COMPOSER_UPDATE
15861583 - << : *STEP_COMPOSER_TESTS_UPDATE
Original file line number Diff line number Diff line change @@ -968,12 +968,14 @@ TEST_WEB_83 := \
968968FILTER := .
969969MAX_RETRIES := 3
970970
971+ # Note: The "composer show" command below outputs a csv with pairs of dependency;version such as "phpunit/phpunit;9.6.17"
971972define run_composer_with_retry
972973 for i in $$(seq 1 $(MAX_RETRIES ) ) ; do \
973974 echo "Attempting composer update (attempt $$i of $(MAX_RETRIES ) )..."; \
974975 $(COMPOSER ) --working-dir=$1 update $2 && break || (echo "Retry $$i failed, waiting 5 seconds before next attempt..." && sleep 5); \
975976 done \
976977
978+ mkdir -p /tmp/artifacts
977979 $(COMPOSER ) --working-dir=$1 show -f json -D | grep -o '"name": "[^"]*\|"version": "[^"]*' | paste -d';' - - | sed 's/"name": //; s/"version": //' | tr -d '"' >> "/tmp/artifacts/web_versions.csv"
978980endef
979981
You can’t perform that action at this time.
0 commit comments