Skip to content

Commit

Permalink
Build infrastructure
Browse files Browse the repository at this point in the history
  • Loading branch information
ruff committed Feb 12, 2023
1 parent 0ee554f commit c33aae6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
5 changes: 2 additions & 3 deletions build.ant.xml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
<arg path="${phpdocumentor}"/>
</exec>
</target>
<target name="full-build" depends="prepare,composer,static-analysis,phpunit,schematron,-check-failure,deploy" description="Perform static analysis, run tests, and generate project documentation.">
<target name="full-build" depends="prepare,composer,static-analysis,phpunit,schematron,-check-failure,projectdoc,deploy" description="Perform static analysis, run tests, and generate project documentation.">
<echo message="Built"/>
</target>
<target name="lint" unless="lint.done" description="Perform syntax check of PHP sourcecode files.">
Expand Down Expand Up @@ -255,7 +255,7 @@
</target>
<target name="deploy" description="Deplay build">
<zip destfile="${basedir}/build/dist/doc.zip">
<fileset dir="${basedir}/doc">
<fileset dir="${basedir}/build/doc">
<include name="**/*.*"/>
</fileset>
</zip>
Expand Down Expand Up @@ -343,7 +343,6 @@
<target name="projectdoc" description="Generate documentation">
<antcall target="clean"/>
<antcall target="downloadphpdocumentor"/>
<delete dir="${basedir}/doc"/>
<exec executable="php" dir="${basedir}/build">
<arg path="${phpdocumentor}"/>
</exec>
Expand Down
5 changes: 2 additions & 3 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
<arg path="${phpdocumentor}"/>
</exec>
</target>
<target name="full-build" depends="prepare,composer,static-analysis,phpunit,-check-failure,deploy" description="Perform static analysis, run tests, and generate project documentation.">
<target name="full-build" depends="prepare,composer,static-analysis,phpunit,-check-failure,projectdoc,deploy" description="Perform static analysis, run tests, and generate project documentation.">
<echo message="Built"/>
</target>
<target name="lint" unless="lint.done" description="Perform syntax check of PHP sourcecode files.">
Expand Down Expand Up @@ -241,7 +241,7 @@
</target>
<target name="deploy" description="Deplay build">
<zip destfile="${project.basedir}/build/dist/doc.zip">
<fileset dir="${project.basedir}/doc">
<fileset dir="${project.basedir}/build/doc">
<include name="**/*.*"/>
</fileset>
</zip>
Expand All @@ -267,7 +267,6 @@
<then>
<phingcall target="clean" />
<phingcall target="downloadphpdocumentor" />
<delete dir="${project.basedir}/doc"/>
<exec executable="php" dir="${project.basedir}/build">
<arg path="${phpdocumentor}"/>
</exec>
Expand Down
2 changes: 1 addition & 1 deletion build/phpdoc.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<phpdocumentor configVersion="3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="https://www.phpdoc.org" xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/phpDocumentor/phpDocumentor/master/data/xsd/phpdoc.xsd">
<paths>
<output>../doc</output>
<output>../build/doc</output>
<cache>./phpdoc</cache>
</paths>
<version number="3.0">
Expand Down

0 comments on commit c33aae6

Please sign in to comment.