Skip to content

Commit

Permalink
Add deploy targets
Browse files Browse the repository at this point in the history
  • Loading branch information
kormoc committed Feb 24, 2014
1 parent f8643ef commit ea6d30b
Showing 1 changed file with 19 additions and 8 deletions.
27 changes: 19 additions & 8 deletions build.xml
Expand Up @@ -63,7 +63,7 @@
</target>

<target name="run" description="Run JMP">
<antcall target="build" />
<antcall target="test" />
<java jar="jmp-${version}.jar"
classpathref="classpath"
fork="true"
Expand All @@ -77,14 +77,8 @@
</java>
</target>

<!--
# TODO: Deploy Target
# TODO: Sign gpg -ab jmp-${version}.jar
# TODO: Upload to clojars.org
-->

<target name="test" depends="build">
<junit>
<junit haltonfailure="true">
<classpath>
<path refid="classpath"/>
<pathelement location="bin" />
Expand All @@ -99,7 +93,24 @@
<formatter type="brief" usefile="false"/>
</junit>
</target>

<target name="sign" depends="test">
<delete file="jmp-${version}.jar.asc"/>

<exec executable="gpg">
<arg value="-ab" />
<arg value="jmp-${version}.jar" />
</exec>
</target>

<target name="deploy" depends="sign">
<exec executable="scp">
<arg value="pom.xml" />
<arg value="jmp-${version}.jar" />
<arg value="jmp-${version}.jar.asc" />
<arg value="clojars@clojars.org:" />
</exec>
</target>

</project>

0 comments on commit ea6d30b

Please sign in to comment.