Skip to content

Commit

Permalink
Added apigen
Browse files Browse the repository at this point in the history
  • Loading branch information
lsv committed Aug 21, 2015
1 parent b51b3b3 commit 348d89a
Show file tree
Hide file tree
Showing 3 changed files with 1,858 additions and 1,771 deletions.
12 changes: 9 additions & 3 deletions build.xml
Expand Up @@ -7,7 +7,7 @@
<property name="bindir" value="${rootdir}/bin" />
<property name="srcdir" value="${rootdir}/src" />
<property name="builddir" value="${rootdir}/.build" />
<property name="docsdir" value="${rootdir}/.build/docs" />
<property name="docsdir" value="${builddir}/docs" />

<property name="BUILD_FAIL" value="false" />
<fileset dir="${srcdir}" id="src_fileset">
Expand All @@ -25,7 +25,6 @@
<delete dir="${builddir}" />
<mkdir dir="${builddir}" />
<mkdir dir="${docsdir}" />
<mkdir dir="${docsdir}/api" />
</target>

<!-- ============================================ -->
Expand Down Expand Up @@ -65,6 +64,13 @@
</phpdoc2>
</target>

<!-- ============================================ -->
<!-- Apigen (agigen) -->
<!-- ============================================ -->
<target name="apigen">
<exec command="${bindir}/apigen generate -s ${srcdir} -d ${docsdir} --tree --todo --title='Lsv \ GTFS' --template-theme=bootstrap" logoutput="true" checkreturn="true" />
</target>

<!-- ============================================ -->
<!-- Unit tests (phpunit) -->
<!-- ============================================ -->
Expand All @@ -75,7 +81,7 @@
<!-- ============================================ -->
<!-- Target: build -->
<!-- ============================================ -->
<target name="build" depends="prepare, phpcsfixer, phpmessdetector, phploc, phpdoc, phpunit" />
<target name="build" depends="prepare, phpcsfixer, phpmessdetector, phploc, apigen, phpunit" />

<!-- ============================================ -->
<!-- (DEFAULT) Target: dist -->
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Expand Up @@ -7,13 +7,13 @@
"require-dev": {
"phpunit/phpunit": "^4.7",
"phpmd/phpmd": "^2.2",
"phpdocumentor/phpdocumentor": "^2.8",
"sebastian/phpcpd": "^2.0",
"phploc/phploc": "^2.1",
"phing/phing": "^2.11",
"satooshi/php-coveralls": "^0.6.1",
"squizlabs/php_codesniffer": "^2.3",
"fabpot/php-cs-fixer": "^1.10"
"fabpot/php-cs-fixer": "^1.10",
"apigen/apigen": "^4.1"
},
"autoload": {
"psr-4": {
Expand Down

0 comments on commit 348d89a

Please sign in to comment.