You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mahout.apache.org by ap...@apache.org on 2016/04/20 07:59:03 UTC
mahout git commit: (nojira) use travis profile
Repository: mahout
Updated Branches:
refs/heads/master ce54875d1 -> f7476a4b7
(nojira) use travis profile
Project: http://git-wip-us.apache.org/repos/asf/mahout/repo
Commit: http://git-wip-us.apache.org/repos/asf/mahout/commit/f7476a4b
Tree: http://git-wip-us.apache.org/repos/asf/mahout/tree/f7476a4b
Diff: http://git-wip-us.apache.org/repos/asf/mahout/diff/f7476a4b
Branch: refs/heads/master
Commit: f7476a4b7c19947aecc61d56dc2783d19a06292a
Parents: ce54875
Author: Andrew Palumbo <ap...@apache.org>
Authored: Wed Apr 20 01:58:35 2016 -0400
Committer: Andrew Palumbo <ap...@apache.org>
Committed: Wed Apr 20 01:58:35 2016 -0400
----------------------------------------------------------------------
math-scala/pom.xml | 23 +++++++++++++++++++++++
runtests.sh | 7 +++----
2 files changed, 26 insertions(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/mahout/blob/f7476a4b/math-scala/pom.xml
----------------------------------------------------------------------
diff --git a/math-scala/pom.xml b/math-scala/pom.xml
index 0bebf33..cfaf4cc 100644
--- a/math-scala/pom.xml
+++ b/math-scala/pom.xml
@@ -177,4 +177,27 @@
</build>
</profile>
</profiles>
+ <profile>
+ <id>travis</id>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <configuration>
+ <!-- Limit memory for unit tests in Travis -->
+ <argLine>-Xmx512m</argLine>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-failsafe-plugin</artifactId>
+ <configuration>
+ <!-- Limit memory for integration tests in Travis -->
+ <argLine>-Xmx1536m</argLine>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
</project>
http://git-wip-us.apache.org/repos/asf/mahout/blob/f7476a4b/runtests.sh
----------------------------------------------------------------------
diff --git a/runtests.sh b/runtests.sh
index 8c487b2..dd763ac 100755
--- a/runtests.sh
+++ b/runtests.sh
@@ -26,10 +26,9 @@ bash -c "while true; do echo \$(date) - building ...; sleep $PING_SLEEP; done" &
PING_LOOP_PID=$!
-# My build is using maven, but you could build anything with this, E.g.
-# your_build_command_1 >> $BUILD_OUTPUT 2>&1
-# your_build_command_2 >> $BUILD_OUTPUT 2>&1
-mvn clean install -DskipTests >> $BUILD_OUTPUT 2>&1
+# Build and test using maven.
+
+mvn clean -Ptravis -DskipTests=true -Dmaven.javadoc.skip=true -B -V install >> $BUILD_OUTPUT 2>&1
mvn test >> $BUILD_OUTPUT 2>&1
# The build finished without returning an error so dump a tail of the output