<?xml version="1.0" encoding="UTF-8"?> <project name="manifest" default="setup"> <target name="setup" depends="clean,install-tools,install-dependencies"/> <target name="clean" unless="clean.done" description="Cleanup build artifacts"> <delete dir="${basedir}/tools"/> <delete dir="${basedir}/vendor"/> <delete file="${basedir}/src/autoload.php"/> <property name="clean.done" value="true"/> </target> <target name="prepare" unless="prepare.done" depends="clean" description="Prepare for build"> <property name="prepare.done" value="true"/> </target> <target name="install-dependencies" description="Install dependencies with Composer"> <exec executable="composer" taskname="composer"> <env key="COMPOSER_DISABLE_XDEBUG_WARN" value="1"/> <arg value="install"/> <arg value="--no-interaction"/> <arg value="--no-progress"/> <arg value="--no-ansi"/> <arg value="--no-suggest"/> <arg value="--optimize-autoloader"/> </exec> </target> <target name="getphive" description="Get phive on travis-ci"> <exec executable="wget" taskname="wget"> <arg value="https://phar.io/releases/phive.phar"/> </exec> <exec executable="wget" taskname="wget"> <arg value="https://phar.io/releases/phive.phar.asc"/> </exec> <exec executable="gpg" taskname="gpg-get-key"> <arg line="--keyserver hkps.pool.sks-keyservers.net --recv-keys 0x9D8A98B29B2D5D79" /> </exec> <exec executable="gpg" taskname="gpg-verify"> <arg line="--verify phive.phar.asc phive.phar" /> </exec> <chmod file="phive.phar" perm="+x" /> <delete file="phive.phar.asc" /> </target> <target name="install-tools" unless="tools-installed" depends="-tools-installed" description="Install tools with Phive"> <exec executable="phive" taskname="phive"> <arg value="install"/> <arg value="--trust-gpg-keys" /> <!-- phpab, phpunit, phpstan, psaml, php-cs-fixer --> <arg value="4AA394086372C20A,2A8299CE842DD38C,CF1A108D0E7AE720,8A03EA3B385DBAA1,E82B2FB314E9906E" /> </exec> </target> <target name="test" depends="install-tools,install-dependencies" description="Run tests"> <exec executable="${basedir}/tools/phpunit" taskname="phpunit"/> </target> <target name="-tools-installed"> <available file="${basedir}/tools" property="tools-installed" type="dir"/> </target> </project>
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
.git | Folder | 0755 |
|
|
examples | Folder | 0755 |
|
|
src | Folder | 0755 |
|
|
tests | Folder | 0755 |
|
|
.gitattributes | File | 320 B | 0644 |
|
.gitignore | File | 93 B | 0644 |
|
.php_cs.dist | File | 11.63 KB | 0644 |
|
.travis.yml | File | 1.06 KB | 0644 |
|
CHANGELOG.md | File | 1.23 KB | 0644 |
|
LICENSE | File | 1.62 KB | 0644 |
|
README.md | File | 1.23 KB | 0644 |
|
build.xml | File | 2.67 KB | 0644 |
|
composer.json | File | 916 B | 0644 |
|
composer.lock | File | 2.31 KB | 0644 |
|
phive.xml | File | 397 B | 0644 |
|
phpunit.xml | File | 786 B | 0644 |
|
psalm.xml | File | 1.83 KB | 0644 |
|