Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 1A906200CFC for ; Thu, 24 Aug 2017 03:41:13 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 16BFF16A239; Thu, 24 Aug 2017 01:41:13 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 5D86516A233 for ; Thu, 24 Aug 2017 03:41:12 +0200 (CEST) Received: (qmail 47206 invoked by uid 500); 24 Aug 2017 01:41:11 -0000 Mailing-List: contact commits-help@kudu.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@kudu.apache.org Delivered-To: mailing list commits@kudu.apache.org Received: (qmail 47182 invoked by uid 99); 24 Aug 2017 01:41:11 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Aug 2017 01:41:11 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 55699E964C; Thu, 24 Aug 2017 01:41:11 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: jdcryans@apache.org To: commits@kudu.apache.org Message-Id: <01092dd9756b48bfba3b983372346417@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: kudu git commit: [build-support] IWYU build configuration for Jenkins Date: Thu, 24 Aug 2017 01:41:11 +0000 (UTC) archived-at: Thu, 24 Aug 2017 01:41:13 -0000 Repository: kudu Updated Branches: refs/heads/branch-1.2.x f2b1af0ed -> 4bf1225e8 [build-support] IWYU build configuration for Jenkins In this branch, the IWYU target is just a no-op. The idea is that we have common configuration matrix for gerrit pre-commit Jenkins jobs, so in particular branches the IWYU is run for real (as of now, at least in the main trunk). Change-Id: I45f2e8529891dd7da18c9fa6383e0c41e6b4182e Reviewed-on: http://gerrit.cloudera.org:8080/7750 Reviewed-by: Adar Dembo Tested-by: Kudu Jenkins (cherry picked from commit 8f6812047a2fe50dabfcb26093385b33f9960a7c) Reviewed-on: http://gerrit.cloudera.org:8080/7778 Reviewed-by: Jean-Daniel Cryans Project: http://git-wip-us.apache.org/repos/asf/kudu/repo Commit: http://git-wip-us.apache.org/repos/asf/kudu/commit/4bf1225e Tree: http://git-wip-us.apache.org/repos/asf/kudu/tree/4bf1225e Diff: http://git-wip-us.apache.org/repos/asf/kudu/diff/4bf1225e Branch: refs/heads/branch-1.2.x Commit: 4bf1225e8a95e10e341a9e30b29b8ae0e36d60ce Parents: f2b1af0 Author: Alexey Serbin Authored: Fri Aug 18 18:44:53 2017 -0700 Committer: Jean-Daniel Cryans Committed: Thu Aug 24 01:40:24 2017 +0000 ---------------------------------------------------------------------- build-support/jenkins/build-and-test.sh | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/kudu/blob/4bf1225e/build-support/jenkins/build-and-test.sh ---------------------------------------------------------------------- diff --git a/build-support/jenkins/build-and-test.sh b/build-support/jenkins/build-and-test.sh index ab6bcbf..15baed5 100755 --- a/build-support/jenkins/build-and-test.sh +++ b/build-support/jenkins/build-and-test.sh @@ -22,7 +22,7 @@ # # Environment variables may be used to customize operation: # BUILD_TYPE: Default: DEBUG -# Maybe be one of ASAN|TSAN|DEBUG|RELEASE|COVERAGE|LINT +# Maybe be one of ASAN|TSAN|DEBUG|RELEASE|COVERAGE|LINT|IWYU # # KUDU_ALLOW_SLOW_TESTS Default: 1 # Runs the "slow" version of the unit tests. Set to 0 to @@ -196,6 +196,9 @@ elif [ "$BUILD_TYPE" = "COVERAGE" ]; then BUILD_PYTHON3=0 elif [ "$BUILD_TYPE" = "LINT" ]; then CMAKE_BUILD=debug +elif [ "$BUILD_TYPE" = "IWYU" ]; then + USE_CLANG=1 + CMAKE_BUILD=debug else # Must be DEBUG or RELEASE CMAKE_BUILD=$BUILD_TYPE @@ -222,17 +225,23 @@ fi CMAKE="$CMAKE $SOURCE_ROOT" $CMAKE +# Create empty test logs or else Jenkins fails to archive artifacts, which +# results in the build failing. +mkdir -p Testing/Temporary +mkdir -p $TEST_LOGDIR + # Short circuit for LINT builds. if [ "$BUILD_TYPE" = "LINT" ]; then - # Create empty test logs or else Jenkins fails to archive artifacts, which - # results in the build failing. - mkdir -p Testing/Temporary - mkdir -p $TEST_LOGDIR - make lint | tee $TEST_LOGDIR/lint.log exit $? fi +# Just a plug for IWYU configuration: this branch does not have code to run +# the include-what-you-use tool. +if [ "$BUILD_TYPE" = "IWYU" ]; then + exit 0 +fi + # Only enable test core dumps for certain build types. if [ "$BUILD_TYPE" != "ASAN" ]; then export KUDU_TEST_ULIMIT_CORE=unlimited