Cleanup
This commit is contained in:
parent
1ea51dd3c4
commit
5f53aea6f9
68
build.xml
68
build.xml
|
|
@ -1,66 +1,18 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project name="exporter" default="build">
|
||||
<property name="php" value="php"/>
|
||||
<property name="phpunit" value="phpunit"/>
|
||||
|
||||
<target name="build" depends="prepare,lint,phpunit"/>
|
||||
|
||||
<project name="exporter">
|
||||
<target name="clean" description="Cleanup build artifacts">
|
||||
<delete dir="${basedir}/vendor"/>
|
||||
<delete file="${basedir}/composer.lock"/>
|
||||
<delete file="${basedir}/composer.phar"/>
|
||||
</target>
|
||||
|
||||
<target name="prepare" depends="clean,phpab" description="Prepare for build">
|
||||
</target>
|
||||
<target name="composer" depends="clean" description="Install dependencies with Composer">
|
||||
<get src="https://getcomposer.org/composer.phar" dest="${basedir}/composer.phar"/>
|
||||
|
||||
<target name="phpab" description="Generate autoloader script">
|
||||
<exec executable="phpab">
|
||||
<arg value="--output" />
|
||||
<arg path="src/autoload.php" />
|
||||
<arg path="src" />
|
||||
<exec executable="php">
|
||||
<arg value="composer.phar"/>
|
||||
<arg value="install"/>
|
||||
</exec>
|
||||
</target>
|
||||
|
||||
<target name="lint">
|
||||
<apply executable="${php}" failonerror="true">
|
||||
<arg value="-l" />
|
||||
|
||||
<fileset dir="${basedir}/src">
|
||||
<include name="**/*.php" />
|
||||
<modified />
|
||||
</fileset>
|
||||
|
||||
<fileset dir="${basedir}/tests">
|
||||
<include name="**/*.php" />
|
||||
<modified />
|
||||
</fileset>
|
||||
</apply>
|
||||
</target>
|
||||
|
||||
<target name="phpunit" description="Run unit tests with PHPUnit">
|
||||
<condition property="phpunit_cmd" value="${php} ${phpunit}" else="${phpunit}">
|
||||
<not>
|
||||
<equals arg1="${phpunit}" arg2="phpunit" />
|
||||
</not>
|
||||
</condition>
|
||||
|
||||
<exec executable="${phpunit_cmd}" failonerror="true"/>
|
||||
</target>
|
||||
|
||||
<target name="pear">
|
||||
<mkdir dir="${basedir}/build/SebastianBergmann/Exporter"/>
|
||||
|
||||
<copy todir="${basedir}/build/SebastianBergmann/Exporter">
|
||||
<fileset dir="${basedir}/src"/>
|
||||
</copy>
|
||||
|
||||
<copy file="LICENSE" todir="${basedir}/build"/>
|
||||
<copy file="README.md" todir="${basedir}/build"/>
|
||||
|
||||
<exec executable="pear" dir="${basedir}/build">
|
||||
<arg value="package" />
|
||||
</exec>
|
||||
|
||||
<delete dir="${basedir}/build/SebastianBergmann"/>
|
||||
<delete file="${basedir}/build/LICENSE"/>
|
||||
<delete file="${basedir}/build/README.md"/>
|
||||
</target>
|
||||
</project>
|
||||
|
||||
|
|
|
|||
|
|
@ -1,56 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<package packagerversion="1.4.10" version="2.0"
|
||||
xmlns="http://pear.php.net/dtd/package-2.0"
|
||||
xmlns:tasks="http://pear.php.net/dtd/tasks-1.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://pear.php.net/dtd/tasks-1.0
|
||||
http://pear.php.net/dtd/tasks-1.0.xsd
|
||||
http://pear.php.net/dtd/package-2.0
|
||||
http://pear.php.net/dtd/package-2.0.xsd">
|
||||
<name>Exporter</name>
|
||||
<channel>pear.phpunit.de</channel>
|
||||
<summary>Provides the functionality to export PHP variables for visualization</summary>
|
||||
<description>Provides the functionality to export PHP variables for visualization</description>
|
||||
<lead>
|
||||
<name>Sebastian Bergmann</name>
|
||||
<user>sebastian</user>
|
||||
<email>sebastian@phpunit.de</email>
|
||||
<active>yes</active>
|
||||
</lead>
|
||||
<date>2013-07-09</date>
|
||||
<version>
|
||||
<release>1.0.0</release>
|
||||
<api>1.0.0</api>
|
||||
</version>
|
||||
<stability>
|
||||
<release>stable</release>
|
||||
<api>stable</api>
|
||||
</stability>
|
||||
<license>The BSD 3-Clause License</license>
|
||||
<notes>http://github.com/sebastianbergmann/exporter/tree</notes>
|
||||
<contents>
|
||||
<dir name="/">
|
||||
<dir name="SebastianBergmann">
|
||||
<dir name="Exporter">
|
||||
<file baseinstalldir="/" name="autoload.php" role="php"/>
|
||||
<file baseinstalldir="/" name="Context.php" role="php"/>
|
||||
<file baseinstalldir="/" name="Exception.php" role="php"/>
|
||||
<file baseinstalldir="/" name="Exporter.php" role="php"/>
|
||||
</dir>
|
||||
</dir>
|
||||
<file baseinstalldir="/" name="LICENSE" role="doc"/>
|
||||
<file baseinstalldir="/" name="README.md" role="doc"/>
|
||||
</dir>
|
||||
</contents>
|
||||
<dependencies>
|
||||
<required>
|
||||
<php>
|
||||
<min>5.3.3</min>
|
||||
</php>
|
||||
<pearinstaller>
|
||||
<min>1.9.4</min>
|
||||
</pearinstaller>
|
||||
</required>
|
||||
</dependencies>
|
||||
<phprelease/>
|
||||
</package>
|
||||
|
|
@ -26,9 +26,13 @@
|
|||
"email": "bschussek@2bepublished.at"
|
||||
}
|
||||
],
|
||||
"minimum-stability": "dev",
|
||||
"require": {
|
||||
"php": ">=5.3.3"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpunit/phpunit": "3.8.*@dev"
|
||||
},
|
||||
"autoload": {
|
||||
"classmap": [
|
||||
"src/"
|
||||
|
|
@ -40,3 +44,4 @@
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,20 +1,18 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<phpunit backupGlobals="false"
|
||||
backupStaticAttributes="false"
|
||||
bootstrap="src/autoload.php"
|
||||
bootstrap="vendor/autoload.php"
|
||||
strict="true"
|
||||
verbose="true">
|
||||
<testsuites>
|
||||
<testsuite name="Exporter">
|
||||
<directory>./tests</directory>
|
||||
<directory>tests</directory>
|
||||
</testsuite>
|
||||
</testsuites>
|
||||
<filter>
|
||||
<whitelist addUncoveredFilesFromWhitelist="true">
|
||||
<directory>./src</directory>
|
||||
<exclude>
|
||||
<file>./src/autoload.php</file>
|
||||
</exclude>
|
||||
<directory>src</directory>
|
||||
</whitelist>
|
||||
</filter>
|
||||
</phpunit>
|
||||
|
||||
|
|
|
|||
|
|
@ -1,21 +0,0 @@
|
|||
<?php
|
||||
// @codingStandardsIgnoreFile
|
||||
// @codeCoverageIgnoreStart
|
||||
// this is an autogenerated file - do not edit
|
||||
spl_autoload_register(
|
||||
function($class) {
|
||||
static $classes = null;
|
||||
if ($classes === null) {
|
||||
$classes = array(
|
||||
'sebastianbergmann\\exporter\\context' => '/Context.php',
|
||||
'sebastianbergmann\\exporter\\exception' => '/Exception.php',
|
||||
'sebastianbergmann\\exporter\\exporter' => '/Exporter.php'
|
||||
);
|
||||
}
|
||||
$cn = strtolower($class);
|
||||
if (isset($classes[$cn])) {
|
||||
require __DIR__ . $classes[$cn];
|
||||
}
|
||||
}
|
||||
);
|
||||
// @codeCoverageIgnoreEnd
|
||||
Loading…
Reference in New Issue