summaryrefslogtreecommitdiffstats
path: root/travis/travis-build-java.sh
diff options
context:
space:
mode:
Diffstat (limited to 'travis/travis-build-java.sh')
-rwxr-xr-xtravis/travis-build-java.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/travis/travis-build-java.sh b/travis/travis-build-java.sh
new file mode 100755
index 00000000000..7e0088586a4
--- /dev/null
+++ b/travis/travis-build-java.sh
@@ -0,0 +1,12 @@
+#!/bin/bash
+# Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
+set -e
+
+SOURCE_DIR=/source
+NUM_THREADS=4
+
+cd "${SOURCE_DIR}"
+source /opt/rh/devtoolset-6/enable || true
+export MAVEN_OPTS="-Xms128m -Xmx512m"
+sh ./bootstrap.sh java
+mvn install -nsu -B -T ${NUM_THREADS} -V # Should ideally split out test phase, but some unit tests fails on 'mvn test'