kudu-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdcry...@apache.org
Subject kudu git commit: [build-support] IWYU build configuration for Jenkins
Date Thu, 24 Aug 2017 01:41:11 GMT
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 <adar@cloudera.com>
Tested-by: Kudu Jenkins
(cherry picked from commit 8f6812047a2fe50dabfcb26093385b33f9960a7c)
Reviewed-on: http://gerrit.cloudera.org:8080/7778
Reviewed-by: Jean-Daniel Cryans <jdcryans@apache.org>


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 <aserbin@cloudera.com>
Authored: Fri Aug 18 18:44:53 2017 -0700
Committer: Jean-Daniel Cryans <jdcryans@apache.org>
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


Mime
View raw message