Skip to content

Commit

Permalink
Fix Travis.
Browse files Browse the repository at this point in the history
  • Loading branch information
davboecki committed Jun 4, 2013
1 parent c7b6678 commit 9c06061
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
6 changes: 3 additions & 3 deletions build.xml
Expand Up @@ -349,11 +349,11 @@
<target name="test" depends="vars-test, init-msg, clean, setup, compile, package-simple">
<delete dir="${test.dir}"/>
<mkdir dir="${test.dir}"/>
<get src="http://ci.md-5.net/job/MCPC-Plus/lastStableBuild/artifact/target/mcpc-plus-1.5.2-R0.2-forge716-B510.jar" dest="${test.dir}/svr.jar" usetimestamp="True"/>
<get src="${downloadserver.full}mcpc-plus-1.5.2-R0.2-forge716-B511.jar" dest="${test.dir}/svr.jar" usetimestamp="True"/>
<mkdir dir="${test.dir}/mods"/>
<get src="http://forestry.sengir.net/files/buildcraft/releases/3.6.0/buildcraft-A-3.6.0.jar" dest="${test.dir}/mods" usetimestamp="True"/>
<get src="https://gist.github.com/GUIpsp/e2a5464a94d4c206c83e/raw/21a76e1bf1d5653ccdbe940d8edbf09b16273dc7/gistfile1.tcl" dest="${test.dir}/expect.tcl" usetimestamp="True"/>
<get src="${downloadserver.full}buildcraft-A-3.6.0.jar" dest="${test.dir}/mods" usetimestamp="True"/>
<copy file="${jar.dir}/LogisticsPipes-MC${mc.version}-${lp.version.full}.jar" todir="${test.dir}/mods"/>
<copy file="${src.dir}/expect.tcl" todir="${test.dir}"/>

<exec dir="${test.dir}" executable="expect" osfamily="unix" failonerror="true">
<arg value="expect.tcl"/>
Expand Down
6 changes: 6 additions & 0 deletions expect.tcl
@@ -0,0 +1,6 @@
set timeout -1
spawn java -jar svr.jar
expect {
-re ".*INFO.*Done.*" {exit 0}
-re ".*unexpected exception.*" {exit 1}
}

0 comments on commit 9c06061

Please sign in to comment.