diff options
author | Simon Brandhof <simon.brandhof@sonarsource.com> | 2015-04-02 16:53:19 +0200 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@sonarsource.com> | 2015-04-02 16:53:38 +0200 |
commit | 1b1d12f8138fab8ab129d60ea2c108e841f6cc1b (patch) | |
tree | be5d4de423c84a82057ef332832f2ab860615705 /pom.xml | |
parent | d5b84364c57fd4f1f160661e3da105527ead4c28 (diff) | |
download | sonarqube-1b1d12f8138fab8ab129d60ea2c108e841f6cc1b.tar.gz sonarqube-1b1d12f8138fab8ab129d60ea2c108e841f6cc1b.zip |
Disable random timezone in tests as gmaven-plugin does not support parallel builds
Diffstat (limited to 'pom.xml')
-rw-r--r-- | pom.xml | 19 |
1 files changed, 16 insertions, 3 deletions
@@ -413,6 +413,14 @@ </execution> </executions> </plugin> + <!-- + Choosing a random timezone when executing tests allows to detect + early the tests that are heavily coupled with local environment. + + Temporary disabled as gmaven-plugin 1.5 does not support maven parallel builds. + See http://jira.codehaus.org/browse/GMAVEN-87 + --> + <!-- <plugin> <groupId>org.codehaus.gmaven</groupId> <artifactId>gmaven-plugin</artifactId> @@ -427,7 +435,7 @@ <configuration> <source> <![CDATA[ - String[] timezones = ["UTC", "EST", "ECT", "CST", "NZ", "GMT-9", "GMT+9"]; + String[] timezones = ["GMT-9"]; String testTimezone = timezones[new Random().nextInt(timezones.length)]; project.properties['testTimezone'] = testTimezone; log.info('Timezone used for tests: ' + testTimezone); @@ -437,6 +445,7 @@ </execution> </executions> </plugin> + --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jar-plugin</artifactId> @@ -558,8 +567,12 @@ <redirectTestOutputToFile>true</redirectTestOutputToFile> <systemPropertyVariables> <java.io.tmpdir>${project.build.directory}</java.io.tmpdir> - <!-- temporary workaround. Waiting for tests to not be coupled with env timezone. --> - <user.timezone>${testTimezone}</user.timezone> + <!-- + random timezone is temporarily disabled. Waiting for gmaven-plugin to support parallel builds. + See profile 'randomize-environment' + --> + <!--<user.timezone>${testTimezone}</user.timezone>--> + <user.timezone>GMT-9</user.timezone> </systemPropertyVariables> <groups>${junitGroups}</groups> <threadCount>1</threadCount> |