You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by zw...@apache.org on 2017/05/19 04:47:15 UTC

[trafficserver] branch master updated: Add a couple of CI build scripts, to source from Jenkins

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

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

The following commit(s) were added to refs/heads/master by this push:
       new  ade891f   Add a couple of CI build scripts, to source from Jenkins
ade891f is described below

commit ade891f4fb8ded51bd7890b72f6521595cd28ec3
Author: Leif Hedstrom <zw...@apache.org>
AuthorDate: Thu May 18 15:13:27 2017 -0600

    Add a couple of CI build scripts, to source from Jenkins
---
 ci/jenkins/bin/autest.sh       | 43 ++++++++++++++++++++++++++++++++++++++++++
 ci/jenkins/bin/clang-format.sh | 29 ++++++++++++++++++++++++++++
 2 files changed, 72 insertions(+)

diff --git a/ci/jenkins/bin/autest.sh b/ci/jenkins/bin/autest.sh
new file mode 100644
index 0000000..ca737e2
--- /dev/null
+++ b/ci/jenkins/bin/autest.sh
@@ -0,0 +1,43 @@
+#!/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.
+
+cd "${WORKSPACE}/src"
+[ -d tests ] || exit 0
+
+autoreconf -if
+
+INSTALL="${WORKSPACE}/${BUILD_NUMBER}/install"
+SANDBOX="/tmp/ausb-$$"
+
+mkdir -p $INSTALL
+
+./configure --prefix="$INSTALL" \
+            --with-user=jenkins \
+            --enable-experimental-plugins \
+            --enable-ccache \
+            --enable-debug \
+            --enable-werror
+
+# Build and run regressions
+make -j4 && make install
+/usr/bin/autest -D ./tests/gold_tests --sandbox "$SANDBOX" --ats-bin "${INSTALL}/bin"
+status="$?"
+[ -d "$SANDBOX" ] && rm -rf "$SANDBOX"
+
+[ "0" != "$status" ] && exit -1
+exit 0
diff --git a/ci/jenkins/bin/clang-format.sh b/ci/jenkins/bin/clang-format.sh
new file mode 100644
index 0000000..38a5e3f
--- /dev/null
+++ b/ci/jenkins/bin/clang-format.sh
@@ -0,0 +1,29 @@
+#!/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.
+
+cd "${WORKSPACE}/src"
+autoreconf -if && ./configure
+
+# Test clang-format, copy our version of clang-format if needed
+[ ! -d .git/fmt ] && cp -rp /home/jenkins/fmt .git
+make clang-format
+git diff --exit-code
+[ "0" != "$?" ] && exit -1
+
+# Normal exit
+exit 0

-- 
To stop receiving notification emails like this one, please contact
['"commits@trafficserver.apache.org" <co...@trafficserver.apache.org>'].