Skip to content

Commit

Permalink
Merge pull request #753 from michaelcullum/phing-config
Browse files Browse the repository at this point in the history
Add composer install step
  • Loading branch information
michaelcullum authored Feb 4, 2019
2 parents d311b8c + 02e08f9 commit 15af280
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@
<project name="joindin-responsive" default="build" basedir=".">
<property name="basedir" value="."/>

<target name="build" depends="phplint,jsvalidate,phpunit,phpcs" />
<target name="build" depends="composer,phplint,jsvalidate,phpunit,phpcs" />

<target name="composer" description="Run composer">
<exec command="composer install" logoutput="/dev/stdout" checkreturn="true" />
</target>

<target name="phplint" description="Run php -l over the fileset">
<phplint haltonfailure="true">
Expand All @@ -28,7 +32,7 @@
</target>

<target name="phpunit" description="Run unit tests using PHPUnit and generates junit.xml and clover.xml">
<exec command="phpunit -c tests/phpunit.xml" logoutput="/dev/stdout" checkreturn="true" />
<exec command="vendor/bin/phpunit -c tests/phpunit.xml" logoutput="/dev/stdout" checkreturn="true" />
</target>

<target name="jsvalidate" description="Use jsvalidate to lint check the JS">
Expand Down

0 comments on commit 15af280

Please sign in to comment.