updat travis to fail fast, if unit test error, stop test the project

This commit is contained in:
Calvin
2014-01-17 17:55:01 +08:00
parent bc6ec05db4
commit 8cd8965017
3 changed files with 53 additions and 2 deletions
+26
View File
@@ -601,6 +601,32 @@
</build>
</profile>
<!-- 执行all test -->
<profile>
<id>all-test</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<argLine>-Xmx256M -XX:MaxPermSize=128m</argLine>
<includes>
<include>**/*FT.java</include>
<include>**/*Test.java</include>
</includes>
<!-- 支持taglib tld文件查找的必要设置 -->
<useSystemClassLoader>false</useSystemClassLoader>
<!-- 将mvn命令行传入的selenium driver参数传入surefire的JVM -->
<systemPropertyVariables>
<selenium.driver>${selenium.driver}</selenium.driver>
</systemPropertyVariables>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<!-- 执行@Category(Smoke.class)的TestCase -->
<profile>
<id>run-smoke</id>