Skip to content

Commit 69d0949

Browse files
Add phive to setup tooling
1 parent deb5711 commit 69d0949

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,5 @@ composer.lock
1616
/phpbu.xml
1717
/phpbu.json
1818
/vendor/
19+
/tools/
1920
cache.properties

composer.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,10 @@
9090
}
9191
},
9292
"scripts": {
93-
"post-autoload-dump": "vendor/bin/captainhook install -f -s"
93+
"post-autoload-dump": "vendor/bin/captainhook install -f -s",
94+
"setup": "phive install",
95+
"test": "tools/phpunit",
96+
"analyse": "tools/phpstan analyse",
97+
"style": "tools/phpcs --standard=psr2 src"
9498
}
9599
}

phive.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<phive xmlns="https://phar.io/phive">
3+
<phar name="phpunit" version="^7.0.0" location="./tools/phpunit" copy="true" installed="7.5.20"/>
4+
<phar name="phpcs" version="^3.5.2" location="./tools/phpcs" copy="true" installed="3.5.4"/>
5+
<phar name="phpstan" version="^0.12.2" location="./tools/phpstan" copy="true" installed="0.12.9"/>
6+
</phive>

0 commit comments

Comments
 (0)