summaryrefslogtreecommitdiffstats
path: root/travis/travis-build-install.sh
diff options
context:
space:
mode:
authorBjørn Christian Seime <bjorncs@oath.com>2017-10-16 14:03:29 +0200
committerBjørn Christian Seime <bjorncs@oath.com>2017-10-16 21:16:10 +0200
commitc85d8be22ce8095271b0925b1acf78210e089f78 (patch)
treeb71338dde3af7c8cb53a8f3b0550363c2c492907 /travis/travis-build-install.sh
parent3db5ac405d7716d9faefe1c933efbe501fbaea92 (diff)
Improve Travis builds
Test install step as separate job for PRs. Use single job for complete build for master branch.
Diffstat (limited to 'travis/travis-build-install.sh')
-rwxr-xr-xtravis/travis-build-install.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/travis/travis-build-install.sh b/travis/travis-build-install.sh
new file mode 100755
index 00000000000..6469a346045
--- /dev/null
+++ b/travis/travis-build-install.sh
@@ -0,0 +1,14 @@
+#!/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 /source/travis/prelude.sh
+source ${SOURCE_DIR}/travis/cpp-prelude.sh
+
+cd ${SOURCE_DIR}
+sh ./bootstrap.sh java
+mvn install --no-snapshot-updates --batch-mode --threads ${NUM_THREADS} --quiet\
+ -Dmaven.test.skip=true -Dmaven.javadoc.skip=true -Dmaven.source.skip=true
+bash ${SOURCE_DIR}/bootstrap-cmake.sh ${SOURCE_DIR} "-DEXCLUDE_TESTS_FROM_ALL=TRUE"
+make -j ${NUM_THREADS}
+make install