Skip to content

Commit

Permalink
fix usrdoc build
Browse files Browse the repository at this point in the history
  • Loading branch information
claeis committed Nov 2, 2017
1 parent 04fdfa5 commit 3bc587b
Show file tree
Hide file tree
Showing 2 changed files with 63 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ addons:
packages:
- libmaven-ant-tasks-java
- postgresql-9.6-postgis-2.3

- python3

install: true

before_script:
Expand Down
61 changes: 61 additions & 0 deletions travis/junit-noframes.xsl
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- based on SO answer http://stackoverflow.com/a/9471505/166062 by dvdvorle http://stackoverflow.com/users/481635/dvdvorle -->
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="text" indent="no"/>
<xsl:template match="/testsuite">
<xsl:text>Testsuite: </xsl:text><xsl:value-of select="@name" />
<xsl:text>
Tests run: </xsl:text>
<xsl:value-of select="@tests" />
<xsl:text>, Failures: </xsl:text>
<xsl:value-of select="@failures" />
<xsl:text>, Errors: </xsl:text>
<xsl:value-of select="@errors" />
<xsl:text>, Time elapsed: </xsl:text>
<xsl:value-of select="@time" />
<xsl:text> sec</xsl:text>
<xsl:text>
--------- ----------- ---------</xsl:text>
<xsl:apply-templates select="testcase" />
<xsl:apply-templates select="system-out" />
<xsl:apply-templates select="system-err" />
</xsl:template>

<xsl:template match="testcase">
<xsl:text>
Testcase: </xsl:text>
<xsl:value-of select="@name" />
<xsl:text> took </xsl:text>
<xsl:value-of select="@time" />
<xsl:choose>
<xsl:when test="failure"><xsl:text> FAILURE </xsl:text><xsl:apply-templates select="failure"/></xsl:when>
<xsl:when test="error"><xsl:text> ERROR </xsl:text><xsl:apply-templates select="error"/></xsl:when>
<xsl:otherwise><xsl:text> SUCCESS</xsl:text></xsl:otherwise>
</xsl:choose>
</xsl:template>

<xsl:template match="error | failure">
<xsl:value-of select="@message" />
<xsl:if test="@type != @message">
<xsl:text> </xsl:text><xsl:value-of select="@type" />
</xsl:if>
<xsl:text>
</xsl:text>
<xsl:value-of select="." />
</xsl:template>

<xsl:template match="system-out">
<xsl:text>
------ Standard output ------
</xsl:text>
<xsl:value-of select="." />
</xsl:template>

<xsl:template match="system-err">
<xsl:text>
------ Error output ------
</xsl:text>
<xsl:value-of select="." />
</xsl:template>

</xsl:stylesheet>

0 comments on commit 3bc587b

Please sign in to comment.