Skip to content

Commit

Permalink
Merge pull request #6 from ngmy/tools-src
Browse files Browse the repository at this point in the history
Extract tools
  • Loading branch information
ngmy committed Apr 22, 2021
2 parents a24eaf0 + 95a4947 commit aeac86b
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 5 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ jobs:

- name: Install tools
uses: ngmy/phive-install-action@master
with:
phive-arguments: --force-accept-unsigned

- name: Upload tools to artifact store
uses: actions/upload-artifact@master
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
/.phpdoc
/build/
/tools/
/tools-src/
/vendor
.envrc.local
.php_cs
Expand Down
3 changes: 2 additions & 1 deletion .laradock/commands/my/up.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,6 @@ handle() {
docker-compose exec workspace chmod +x /tmp/phive.phar
docker-compose exec workspace mv /tmp/phive.phar /usr/local/bin/phive
fi
docker-compose exec -u laradock workspace bash -c 'yes | phive --home .laradock/data/phive install'
docker-compose exec -u laradock workspace bash -c 'yes | phive --home .laradock/data/phive install --force-accept-unsigned'
docker-compose exec -u laradock workspace composer phar-extractor
}
9 changes: 5 additions & 4 deletions .phive/phars.xml
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<phive xmlns="https://phar.io/phive">
<phar name="ngmy/phar-extractor" version="^0.1.0" installed="0.1.0" location="./tools/phar-extractor" copy="false"/>
<phar name="php-coveralls" version="^2.4.3" installed="2.4.3" location="./tools/php-coveralls" copy="false"/>
<phar name="php-cs-fixer" version="^2.18.2" installed="2.18.4" location="./tools/php-cs-fixer" copy="false"/>
<phar name="phpcbf" version="^3.5.8" installed="3.5.8" location="./tools/phpcbf" copy="false"/>
<phar name="phpcs" version="^3.5.8" installed="3.5.8" location="./tools/phpcs" copy="false"/>
<phar name="php-cs-fixer" version="^2.18.2" installed="2.18.6" location="./tools/php-cs-fixer" copy="false"/>
<phar name="phpcbf" version="^3.5.8" installed="3.6.0" location="./tools/phpcbf" copy="false"/>
<phar name="phpcs" version="^3.5.8" installed="3.6.0" location="./tools/phpcs" copy="false"/>
<phar name="phpdocumentor" version="^3.0.0" installed="3.0.0" location="./tools/phpDocumentor" copy="false"/>
<phar name="phpstan" version="^0.12.64" installed="0.12.82" location="./tools/phpstan" copy="false"/>
<phar name="phpstan" version="^0.12.64" installed="0.12.84" location="./tools/phpstan" copy="false"/>
<phar name="phpunit" version="^9.5.0" installed="9.5.4" location="./tools/phpunit" copy="false"/>
<phar name="psalm" version="^4.7.0" installed="4.7.0" location="./tools/psalm" copy="false"/>
</phive>
4 changes: 4 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@
"doc": [
"@phpdoc"
],
"phar-extractor": [
"rm -rf tools-src",
"tools/phar-extractor extract-phive-xml -t tools-src"
],
"php-cs-fixer": [
"tools/php-cs-fixer fix --ansi"
],
Expand Down

0 comments on commit aeac86b

Please sign in to comment.