You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@arrow.apache.org by we...@apache.org on 2018/08/06 19:40:27 UTC

[arrow] 12/15: ARROW-2815: [CI] Skip Java tests and style checks on C++ job [skip appveyor]

This is an automated email from the ASF dual-hosted git repository.

wesm pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/arrow.git

commit e10f2b3c15c426c879924529ec944222b9e576f5
Author: Antoine Pitrou <an...@python.org>
AuthorDate: Mon Aug 6 19:10:08 2018 +0200

    ARROW-2815: [CI] Skip Java tests and style checks on C++ job [skip appveyor]
    
    This omits all warning and debug logs from previous Maven output.
    
    Author: Antoine Pitrou <an...@python.org>
    
    Closes #2378 from pitrou/ARROW-2815-strip-java-logging and squashes the following commits:
    
    603db64 <Antoine Pitrou> ARROW-2815:  Skip Java tests and style checks on C++ job
---
 .travis.yml              | 4 ++++
 ci/travis_script_java.sh | 7 ++++++-
 2 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/.travis.yml b/.travis.yml
index f14b86f..a1f5699 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -23,6 +23,9 @@ services:
 
 cache:
   ccache: true
+  directories:
+    - $HOME/.m2  # Maven
+
 
 before_install:
   # Common pre-install steps for all builds
@@ -57,6 +60,7 @@ matrix:
     - ARROW_TRAVIS_PYTHON_DOCS=1
     - ARROW_BUILD_WARNING_LEVEL=CHECKIN
     - ARROW_TRAVIS_PYTHON_JVM=1
+    - ARROW_TRAVIS_JAVA_BUILD_ONLY=1
     - CC="clang-6.0"
     - CXX="clang++-6.0"
     before_script:
diff --git a/ci/travis_script_java.sh b/ci/travis_script_java.sh
index a8ad94c..9553dd5 100755
--- a/ci/travis_script_java.sh
+++ b/ci/travis_script_java.sh
@@ -24,6 +24,11 @@ JAVA_DIR=${TRAVIS_BUILD_DIR}/java
 pushd $JAVA_DIR
 
 export MAVEN_OPTS="$MAVEN_OPTS -Dorg.slf4j.simpleLogger.defaultLogLevel=warn"
-mvn -B install
+if [ $ARROW_TRAVIS_JAVA_BUILD_ONLY == "1" ]; then
+    # Save time and make build less verbose by skipping tests and style checks
+    mvn -DskipTests=true -Dcheckstyle.skip=true -B install
+else
+    mvn -B install
+fi
 
 popd