]> source.dussan.org Git - poi.git/commitdiff
Try if using a local temporary directory avoids the permission errors in unit tests...
authorDominik Stadler <centic@apache.org>
Tue, 21 Nov 2017 16:28:07 +0000 (16:28 +0000)
committerDominik Stadler <centic@apache.org>
Tue, 21 Nov 2017 16:28:07 +0000 (16:28 +0000)
* Collect JUnit results
* Set java.io.tmpdir in Maven unit test runs

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1815951 13f79535-47bb-0310-9956-ffa450edef68

jenkins/create_jobs.groovy
sonar/main/pom.xml
sonar/ooxml/pom.xml
sonar/pom.xml

index 357ecb11af748f8d35619f4b4f6f4069d6491a94..8c0fba7a1bd05d9c9904ad6f077cff13e1b6dfb8 100644 (file)
@@ -250,6 +250,11 @@ poijobs.each { poijob ->
                         project / publishers << 'hudson.plugins.cigame.GamePublisher' {}
                     }
                 }
+                archiveJunit('sonar/*/target/surefire-reports/TEST-*.xml') {
+                    testDataPublishers {
+                        publishTestStabilityData()
+                    }
+                }
                 mailer(email, false, false)
             }
         } else if (poijob.javadoc) {
index 2ed5514aeff273203a0c30b9a8ad026de8ccfaa3..b2695202899c373adaf1e8800f61f9dadf37bac7 100644 (file)
                 <artifactId>maven-surefire-plugin</artifactId>
                 <version>${maven.plugin.surefire.version}</version>
                 <configuration>
-                    <argLine>@{argLine} -Duser.language=en -Duser.country=US -Xmx1024m -XX:-OmitStackTraceInFastThrow</argLine>
+                    <argLine>@{argLine} -Duser.language=en -Duser.country=US -Xmx1024m -Djava.io.tmpdir=target/tmp -XX:-OmitStackTraceInFastThrow</argLine>
                 </configuration>
             </plugin>
                </plugins>
index f5c23afaf2e1ca8d48cbbb9c33300e4bc106e580..65745528a2a7087a82bbeb7d259d2dc1c8790544 100644 (file)
@@ -93,7 +93,7 @@
                 <artifactId>maven-surefire-plugin</artifactId>
                 <version>${maven.plugin.surefire.version}</version>
                 <configuration>
-                    <argLine>@{argLine} -Duser.language=en -Duser.country=US -Xmx1024m -XX:-OmitStackTraceInFastThrow</argLine>
+                    <argLine>@{argLine} -Duser.language=en -Duser.country=US -Xmx1024m -Djava.io.tmpdir=target/tmp -XX:-OmitStackTraceInFastThrow</argLine>
                 </configuration>
             </plugin>
                </plugins>
index 20c8bc26d18248a4d438d61753d6f3b538ac7a3c..f28962f69f1afdcb34c0ebcddabf80be95ed9bbe 100644 (file)
                                                <org.apache.poi.util.POILogger>org.apache.poi.util.NullLogger</org.apache.poi.util.POILogger>
                                        </systemPropertyVariables>
                                        <!-- use to following to analyze OOM issues:    -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/tmp -->
-                                       <argLine>@{argLine} -Duser.language=en -Duser.country=US -Xmx1024m</argLine>
+                                       <argLine>@{argLine} -Duser.language=en -Duser.country=US -Xmx1024m -Djava.io.tmpdir=target/tmp</argLine>
                                        <excludes>
                                                <exclude>**/All*Tests.java</exclude>
                                                <exclude>**/TestUnfixedBugs.java</exclude>