Skip to content

Commit

Permalink
Add the js validation to the build tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
lornajane committed May 27, 2015
1 parent 3ab73ac commit 2b2ee1a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<project name="joindin-responsive" default="build" basedir=".">
<property name="basedir" value="."/>

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

<target name="phplint" description="Run php -l over the fileset">
<phplint haltonfailure="true">
Expand Down Expand Up @@ -31,6 +31,11 @@
<exec command="phpunit -c tests/phpunit.xml" logoutput="/dev/stdout" checkreturn="true" />
</target>

<target name="jslint" description="Use jsvalidate to lint check the JS">
<exec command="npm install" logoutput="/dev/stdout" />
<exec command="grunt jsvalidate" logoutput="/dev/stdout" checkreturn="true" />
</target>

<target name="launch">
<exec command="scripts/jenkinslaunch.sh" checkreturn="true" />
</target>
Expand Down

0 comments on commit 2b2ee1a

Please sign in to comment.