Skip to content

Commit 9aaf26f

Browse files
committed
Updated the JAVA_OPTS and echo'd the env vars in the build.xml
1 parent 5f88cbf commit 9aaf26f

File tree

3 files changed

+17
-10
lines changed

3 files changed

+17
-10
lines changed

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
before_script:
22
- echo $JAVA_OPTS
3-
- export JAVA_OPTS="-server -Xmx1024m"
3+
- export JAVA_OPTS="-server -Xmx1024m -Xbatch -verbose:gc -XX:CICompilerCount=1 -XX:+PrintCompilation"
44

55
language: java
66

build.xml

+15-8
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,20 @@
2323
</fileset>
2424
</path>
2525

26-
<target name="init" depends="clean">
26+
<target name="echo.env_vars">
27+
<property environment="env_vars"/>
28+
<echo>CLASSPATH='${env_vars.CLASSPATH}'</echo>
29+
<echo>JAVA_HOME='${env_vars.JAVA_HOME}'</echo>
30+
<echo>JAVA_OPTS='${env_vars.JAVA_OPTS}'</echo>
31+
</target>
32+
33+
<target name="clean">
34+
<!-- Delete the ${build} and ${dist} directory trees -->
35+
<delete dir="${build}"/>
36+
<delete dir="${dist}"/>
37+
</target>
38+
39+
<target name="init" depends="clean, echo.env_vars">
2740
<!-- Create the time stamp -->
2841
<tstamp/>
2942
<!-- Create the build directory structure used by build -->
@@ -45,7 +58,7 @@
4558
</target>
4659

4760
<target name="run_tests" depends="dist">
48-
<junit fork="true" printsummary="on" haltonfailure="yes">
61+
<junit printsummary="on" haltonfailure="yes">
4962
<jvmarg value="-server"/>
5063
<classpath>
5164
<path refid="test.class.path" />
@@ -117,10 +130,4 @@
117130

118131
<target name="test" depends="run_tests, run_timing" />
119132

120-
<target name="clean" description="clean up">
121-
<!-- Delete the ${build} and ${dist} directory trees -->
122-
<delete dir="${build}"/>
123-
<delete dir="${dist}"/>
124-
</target>
125-
126133
</project>

src/com/jwetherell/algorithms/sorts/timing/SortsTiming.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
public class SortsTiming {
1717

1818
private static final DecimalFormat FORMAT = new DecimalFormat("#.###");
19-
private static final int SIZE = 10000;
19+
private static final int SIZE = 100000;
2020

2121
private static final boolean showResult = false;
2222
private static final boolean showComparison = true;

0 commit comments

Comments
 (0)