Repository: trafficserver Updated Branches: refs/heads/master 9a7256693 -> 8c1c05e36
Updated builds, added Coverity script Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/8c1c05e3 Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/8c1c05e3 Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/8c1c05e3 Branch: refs/heads/master Commit: 8c1c05e368cb30618ab31d0cc8a5324fd908bdd0 Parents: 9a72566 Author: Leif Hedstrom <[email protected]> Authored: Tue May 27 19:39:09 2014 -0600 Committer: Leif Hedstrom <[email protected]> Committed: Tue May 27 19:39:09 2014 -0600 ---------------------------------------------------------------------- ci/jenkins/bin/clang-analyzer.sh | 4 ++-- ci/jenkins/bin/coverity.sh | 41 +++++++++++++++++++++++++++++++++++ ci/jenkins/bin/environment.sh | 3 +++ ci/jenkins/bin/in_tree.sh | 3 ++- ci/jenkins/bin/out_of_tree.sh | 5 +++-- ci/jenkins/bin/rat.sh | 4 ++++ 6 files changed, 55 insertions(+), 5 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/trafficserver/blob/8c1c05e3/ci/jenkins/bin/clang-analyzer.sh ---------------------------------------------------------------------- diff --git a/ci/jenkins/bin/clang-analyzer.sh b/ci/jenkins/bin/clang-analyzer.sh index eac0fe2..259f6fb 100755 --- a/ci/jenkins/bin/clang-analyzer.sh +++ b/ci/jenkins/bin/clang-analyzer.sh @@ -20,7 +20,7 @@ source /home/jenkins/bin/environment.sh cd "${WORKSPACE}/src" autoreconf -fi -./configure --enable-experimental-plugins -scan-build -o /home/jenkins/clang-analyzer --html-title="ATS master branch" ${ATS_MAKE} -j6 +./configure --enable-experimental-plugins --enable-cppapi +scan-build -o /home/jenkins/clang-analyzer --html-title="ATS master branch" ${ATS_MAKE} -j4 ${ATS_MAKE} distclean http://git-wip-us.apache.org/repos/asf/trafficserver/blob/8c1c05e3/ci/jenkins/bin/coverity.sh ---------------------------------------------------------------------- diff --git a/ci/jenkins/bin/coverity.sh b/ci/jenkins/bin/coverity.sh new file mode 100755 index 0000000..6c043dd --- /dev/null +++ b/ci/jenkins/bin/coverity.sh @@ -0,0 +1,41 @@ +#!/bin/sh +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +source /home/jenkins/bin/environment.sh +cd "${WORKSPACE}/src" + +# Get the Coverity tools into our path +export PATH=/home/coverity/bin:${PATH} + +COV_TARBALL=/tmp/trafficserver-${TODAY}.tgz +COV_VERSION=$(git rev-parse --short HEAD) + +autoreconf -fi +./configure --enable-experimental-plugins --enable-cppapi + +cov-build --dir cov-int ${ATS_MAKE} -j4 +tar czvf ${COV_TARBALL} cov-int + +# Now submit this artifact +/home/admin/bin/cov-submit.sh ${COV_TARBALL} ${COV_VERSION} + +# Cleanup +rm -rf cov-int +rm ${COV_TARBALL} + +${ATS_MAKE} distclean http://git-wip-us.apache.org/repos/asf/trafficserver/blob/8c1c05e3/ci/jenkins/bin/environment.sh ---------------------------------------------------------------------- diff --git a/ci/jenkins/bin/environment.sh b/ci/jenkins/bin/environment.sh index 2136e01..633a9c0 100755 --- a/ci/jenkins/bin/environment.sh +++ b/ci/jenkins/bin/environment.sh @@ -27,6 +27,9 @@ ATS_MAKE=make test "${JOB_NAME#freebsd*}" != "${JOB_NAME}" && ATS_MAKE="gmake" export ATS_MAKE +# Useful for timestamps etc. for daily runs +export TODAY=$(/bin/date +'%m%d%Y') + # Extract the current branch (default to master). ToDo: Can we do this better ? ATS_BRANCH=master test "${JOB_NAME#*-4.2.x}" != "${JOB_NAME}" && ATS_BRANCH=4.2.x http://git-wip-us.apache.org/repos/asf/trafficserver/blob/8c1c05e3/ci/jenkins/bin/in_tree.sh ---------------------------------------------------------------------- diff --git a/ci/jenkins/bin/in_tree.sh b/ci/jenkins/bin/in_tree.sh index 2668ff5..c78495e 100755 --- a/ci/jenkins/bin/in_tree.sh +++ b/ci/jenkins/bin/in_tree.sh @@ -17,9 +17,10 @@ # limitations under the License. source /home/jenkins/bin/environment.sh -cd "${WORKSPACE}/src_in-tree" if test "${JOB_NAME#*type=in_tree}" != "${JOB_NAME}"; then + cd "${WORKSPACE}/src_in-tree" + # Just use the configure from the snapshot.sh ${ATS_MAKE} -j4 ${ATS_MAKE} check http://git-wip-us.apache.org/repos/asf/trafficserver/blob/8c1c05e3/ci/jenkins/bin/out_of_tree.sh ---------------------------------------------------------------------- diff --git a/ci/jenkins/bin/out_of_tree.sh b/ci/jenkins/bin/out_of_tree.sh index 73598a7..0e16529 100755 --- a/ci/jenkins/bin/out_of_tree.sh +++ b/ci/jenkins/bin/out_of_tree.sh @@ -17,11 +17,12 @@ # limitations under the License. source /home/jenkins/bin/environment.sh -cd "${WORKSPACE}/src_out-of-tree" if test "${JOB_NAME#*type=out_of_tree}" != "${JOB_NAME}"; then + cd "${WORKSPACE}/src_out-of-tree" + # This runs its own configure, so don't use the one from snapshot.sh - ${ATS_MAKE} distclean + ${ATS_MAKE} -i distclean mkdir -p BUILDS && cd BUILDS ../configure \ --enable-ccache \ http://git-wip-us.apache.org/repos/asf/trafficserver/blob/8c1c05e3/ci/jenkins/bin/rat.sh ---------------------------------------------------------------------- diff --git a/ci/jenkins/bin/rat.sh b/ci/jenkins/bin/rat.sh index 18a0490..2b51df4 100755 --- a/ci/jenkins/bin/rat.sh +++ b/ci/jenkins/bin/rat.sh @@ -20,6 +20,10 @@ source /home/jenkins/bin/environment.sh cd "${WORKSPACE}/src" autoreconf -if && ./configure + +# WTF +rm -f lib/ts/stamp-h1 + ${ATS_MAKE} rat | tee RAT.txt mv RAT.txt /home/jenkins/RAT/rat-${ATS_BRANCH}.txt.new mv /home/jenkins/RAT/rat-${ATS_BRANCH}.txt.new /home/jenkins/RAT/rat-${ATS_BRANCH}.txt
