Skip to content

Commit 5a538da

Browse files
Remove jq dependency
1 parent 5b6b1c5 commit 5a538da

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

.circleci/continue_config.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff 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

Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -968,12 +968,14 @@ TEST_WEB_83 := \
968968
FILTER := .
969969
MAX_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"
971972
define 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"
978980
endef
979981

0 commit comments

Comments
 (0)