diff --git a/.gitignore b/.gitignore index 93d9587..7137362 100644 --- a/.gitignore +++ b/.gitignore @@ -3,9 +3,13 @@ phpunit.xml composer.lock # Build Artifacts +phpunit.xml +phpunit.phing.xml cache.properties build/ -!build/php*.xml +!build/resources/*.xslt + +bin .idea/workspace.xml .idea/dataSources.xml diff --git a/.idea/axstrad-content.iml b/.idea/axstrad-content.iml index 79ae030..fc7e46d 100644 --- a/.idea/axstrad-content.iml +++ b/.idea/axstrad-content.iml @@ -4,8 +4,7 @@ - - + diff --git a/.idea/phing.xml b/.idea/phing.xml new file mode 100644 index 0000000..cb53a0f --- /dev/null +++ b/.idea/phing.xml @@ -0,0 +1,23 @@ + + + + + + + + + + + + + + + + + + + + + $USER_HOME$/.composer/vendor/bin/phing + + \ No newline at end of file diff --git a/.idea/webResources.xml b/.idea/webResources.xml index 779b770..1f8ec26 100644 --- a/.idea/webResources.xml +++ b/.idea/webResources.xml @@ -7,6 +7,7 @@ + diff --git a/build.properties b/build.properties new file mode 100644 index 0000000..0ac0c91 --- /dev/null +++ b/build.properties @@ -0,0 +1,58 @@ +version=0.0.0 +commit="none" +name=${phing.project.name} +summary="Summary" +author.name="Dan Kempster" +author.email="dev@dankempster.co.uk" +author.username="dankempster" +description="Description last commit ${commit}" + +global.vendor.bin=/Users/dan/.composer/vendor/bin +global.bin=/usr/bin + +exec.php=${global.bin}/php +exec.phing=${global.vendor.bin}/phing +exec.phpdepend=${global.vendor.bin}/pdepend +exec.phpcs=${global.vendor.bin}/phpcs +exec.phpunit=${project.bin}/phpunit +exec.phpmd=${global.vendor.bin}/phpmd +exec.phpcpd=${global.vendor.bin}/phpcpd +exec.phpdoc=${global.vendor.bin}/phpdoc +exec.phpdox=${global.bin}/phpdox +exec.phploc=${global.vendor.bin}/phploc + +project.src=${project.basedir}/src +project.tests=${project.basedir}/tests +project.vendor=${project.basedir}/src +project.bin=${project.basedir}/bin +project.docs=${project.basedir}/docs +project.docs.api=${project.docs}/api + +build.root=${project.basedir}/build +build.cache=${build.root}/cache +build.tmp=${build.root}/tmp +build.log=${build.root}/log +build.html=${build.root}/html +build.config=${build.root}/config +build.resources=${build.root}/resources + +phpdepend.xml.file=${build.log}/phpdepend.xml +phpdepend.html=${build.html} +phpdepend.ignore=.git,tests/,build/ + +phpcs.xml.file=${build.log}/phpcs.xml +phpcs.html=${build.html}/phpcs + +phpunit.html=${build.html}/phpunit +phpunit.config=${project.basedir}/phpunit.xml.dist +phpunit.phing.config=${project.basedir}/phpunit.phing.xml + +phpmd.config=${build.config}/phpmd.xml +phpmd.report.html=${build.html}/pmd.html +phpmd.report.text=${build.html}/pmd.txt +phpmd.report.xml=${build.log}/pmd.xml + +phpcpd.log.file=${build.log}/phpcpd.xml +phpcpd.html=${build.html}/phpcpd + +phploc.log.file=${build.log}/phploc.xml diff --git a/build.xml b/build.xml new file mode 100644 index 0000000..5c2b8f0 --- /dev/null +++ b/build.xml @@ -0,0 +1,156 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/build/resources/phpunit-phing.xslt b/build/resources/phpunit-phing.xslt new file mode 100644 index 0000000..6ba94b6 --- /dev/null +++ b/build/resources/phpunit-phing.xslt @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/composer.json b/composer.json index fa37cb9..13825fc 100644 --- a/composer.json +++ b/composer.json @@ -34,6 +34,10 @@ "minimum-stability": "dev", + "config": { + "bin-dir": "bin" + }, + "extra": { "branch-alias": { "dev-develop": "0.4.x-dev" diff --git a/phpdox.xml b/phpdox.xml new file mode 100644 index 0000000..7f8ee79 --- /dev/null +++ b/phpdox.xml @@ -0,0 +1,40 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/phpmd.xml b/phpmd.xml new file mode 100644 index 0000000..1e870bf --- /dev/null +++ b/phpmd.xml @@ -0,0 +1,11 @@ + + Description of your coding standard + + + + diff --git a/phpunit.xml.dist b/phpunit.xml.dist index e6d11dd..96f8222 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -18,17 +18,18 @@ - - - + />--> + + +