Skip to content

Commit

Permalink
Check that Travis build fails when tests fail or error.
Browse files Browse the repository at this point in the history
  • Loading branch information
mbjones committed Apr 25, 2018
1 parent 1e07fe9 commit 793afde
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -499,8 +499,7 @@
</echo>

<!-- use the ant "junit" task to run JUnit tests. -->
<junit printsummary="yes" haltonfailure="no" fork="no"
haltonerror="no">
<junit printsummary="yes" haltonfailure="no" fork="no" haltonerror="no" failureproperty="test.failed">
<classpath>
<pathelement path="${cpath}:${build.dir}/${name}-test.jar:${build.dir}/${name}.jar" />
</classpath>
Expand All @@ -514,6 +513,7 @@
</fileset>
</batchtest>
</junit>
<fail message="Test failure detected, check test results." if="test.failed" />
</target>

<target name="emlparsertest" depends="jar">
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/eml-data-paper.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
xmlns:eml="eml://ecoinformatics.org/eml-2.2.0"
xmlns:stmml="http://www.xml-cml.org/schema/stmml-1.1"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="eml://ecoinformatics.org/eml-2.2.0 xsd/eml.xsd"
xsi:schemaLocation="eml://ecoinformatics.org/eml-2.2.0 eml.xsd"
packageId="doi:10.18739/A2KK3F" system="https://arcticdata.io">
<dataset>
<title>Polaris Project 2017: Permafrost carbon and nitrogen, Yukon-Kuskokwim Delta, Alaska</title>
Expand Down

0 comments on commit 793afde

Please sign in to comment.