Skip to content

Commit

Permalink
Enhancement: Install humbug/box with phive
Browse files Browse the repository at this point in the history
  • Loading branch information
localheinz committed Nov 22, 2021
1 parent 108c126 commit 239dcaa
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 9 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/integrate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -334,13 +334,13 @@ jobs:
run: "echo $(cat box.json | jq 'del(.git)') > box.json"

- name: "Validate configuration for humbug/box"
run: "phar/box.phar validate box.json"
run: ".phive/box validate box.json"

- name: "Compile composer-normalize.phar with humbug/box"
run: "phar/box.phar compile --config=box.json"
run: ".phive/box compile --config=box.json"

- name: "Show info about composer-normalize.phar with humbug/box"
run: "phar/box.phar info ${{ env.COMPOSER_NORMALIZE_PHAR }}"
run: ".phive/box info ${{ env.COMPOSER_NORMALIZE_PHAR }}"

- name: "Run composer-normalize.phar"
run: "${{ env.COMPOSER_NORMALIZE_PHAR }}"
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,13 @@ jobs:
run: "composer require composer/composer:${{ env.COMPOSER_VERSION }} --no-interaction --no-progress"

- name: "Validate configuration for humbug/box"
run: "phar/box.phar validate box.json"
run: ".phive/box validate box.json"

- name: "Compile composer-normalize.phar with humbug/box"
run: "phar/box.phar compile --config=box.json"
run: ".phive/box compile --config=box.json"

- name: "Show info about composer-normalize.phar with humbug/box"
run: "phar/box.phar info ${{ env.COMPOSER_NORMALIZE_PHAR }}"
run: ".phive/box info ${{ env.COMPOSER_NORMALIZE_PHAR }}"

- name: "Run composer-normalize.phar"
run: "${{ env.COMPOSER_NORMALIZE_PHAR }}"
Expand Down
File renamed without changes.
1 change: 1 addition & 0 deletions .phive/phars.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
<phive xmlns="https://phar.io/phive">
<phar name="composer-normalize" version="^2.15.0" installed="2.15.0" location="./.phive/composer-normalize" copy="true"/>
<phar name="composer-require-checker" version="^2.1.0" installed="2.1.0" location="./.phive/composer-require-checker" copy="true"/>
<phar name="humbug/box" version="3.8.4" installed="3.8.4" location="./.phive/box" copy="true"/>
</phive>
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ help: ## Displays this list of targets with descriptions

.PHONY: phar
phar: vendor ## Builds a phar with humbug/box
phar/box.phar validate box.json
.phive/box validate box.json
composer require composer/composer:${COMPOSER_VERSION} --no-interaction --no-progress --update-with-dependencies
phar/box.phar compile --config=box.json
.phive/box compile --config=box.json
git checkout HEAD -- composer.json composer.lock
phar/box.phar info .build/phar/composer-normalize.phar
.phive/box info .build/phar/composer-normalize.phar
.build/phar/composer-normalize.phar
.build/phar/composer-normalize.phar --dry-run composer.json

Expand Down

0 comments on commit 239dcaa

Please sign in to comment.