Permalink
Browse files

Fix Travis.

  • Loading branch information...
davboecki committed Jun 4, 2013
1 parent c7b6678 commit 9c06061a7bf68f56e837a1cd98f8429ab0daebcb
Showing with 9 additions and 3 deletions.
  1. +3 −3 build.xml
  2. +6 −0 expect.tcl
View
@@ -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"/>
View
@@ -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.