You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by mp...@apache.org on 2017/01/19 19:31:18 UTC

[3/3] mesos git commit: Added a `support/README.md` and the `support/jenkins` directory.

Added a `support/README.md` and the `support/jenkins` directory.

Review: https://reviews.apache.org/r/55491/


Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/df5317fa
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/df5317fa
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/df5317fa

Branch: refs/heads/1.1.x
Commit: df5317fa04f14c8b2598fd1f20f3f779713a06bd
Parents: de45325
Author: Michael Park <mp...@apache.org>
Authored: Wed Jan 18 11:47:03 2017 -0800
Committer: Michael Park <mp...@apache.org>
Committed: Thu Jan 19 11:10:08 2017 -0800

----------------------------------------------------------------------
 support/README.md            |  6 ++++++
 support/jenkins/README.md    |  8 ++++++++
 support/jenkins/buildbot.sh  | 29 +++++++++++++++++++++++++++++
 support/jenkins/reviewbot.sh | 37 +++++++++++++++++++++++++++++++++++++
 support/jenkins/tidybot.sh   | 30 ++++++++++++++++++++++++++++++
 5 files changed, 110 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/df5317fa/support/README.md
----------------------------------------------------------------------
diff --git a/support/README.md b/support/README.md
new file mode 100644
index 0000000..e812e96
--- /dev/null
+++ b/support/README.md
@@ -0,0 +1,6 @@
+# Supporting tools
+
+This directory contains various helper scripts.
+
+The scripts directly in this directory are intended to be used by Mesos
+developers on the command-line.

http://git-wip-us.apache.org/repos/asf/mesos/blob/df5317fa/support/jenkins/README.md
----------------------------------------------------------------------
diff --git a/support/jenkins/README.md b/support/jenkins/README.md
new file mode 100644
index 0000000..21fc51e
--- /dev/null
+++ b/support/jenkins/README.md
@@ -0,0 +1,8 @@
+# Build scripts for ASF Jenkins CI.
+
+This directory contains build scripts for the ASF Jenkins CI.
+
+The scripts named `<name>.sh` correspond to Jenkins jobs named `Mesos-<Name>`.
+e.g., [buildbot.sh](buildbot.sh) corresponds to [Mesos-Buildbot][buildbot].
+
+[buildbot]: https://builds.apache.org/view/M-R/view/Mesos/job/Mesos-Buildbot

http://git-wip-us.apache.org/repos/asf/mesos/blob/df5317fa/support/jenkins/buildbot.sh
----------------------------------------------------------------------
diff --git a/support/jenkins/buildbot.sh b/support/jenkins/buildbot.sh
new file mode 100755
index 0000000..7f78509
--- /dev/null
+++ b/support/jenkins/buildbot.sh
@@ -0,0 +1,29 @@
+#!/usr/bin/env bash
+
+# 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.
+
+set -e
+set -o pipefail
+
+MESOS_DIR=$(git rev-parse --show-toplevel)
+
+# Install `virtualenv`, needed by `support/mesos-style.py`.
+pip install --user virtualenv
+
+"${MESOS_DIR}"/support/mesos-style.py
+
+"${MESOS_DIR}"/support/docker-build.sh

http://git-wip-us.apache.org/repos/asf/mesos/blob/df5317fa/support/jenkins/reviewbot.sh
----------------------------------------------------------------------
diff --git a/support/jenkins/reviewbot.sh b/support/jenkins/reviewbot.sh
new file mode 100755
index 0000000..a9d0b41
--- /dev/null
+++ b/support/jenkins/reviewbot.sh
@@ -0,0 +1,37 @@
+#!/usr/bin/env bash
+
+# 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.
+
+set -e
+set -o pipefail
+
+MESOS_DIR=$(git rev-parse --show-toplevel)
+
+: ${USERNAME:?"Environment variable 'USERNAME' must be set to the username of the 'Mesos Reviewbot' Reviewboard account."}
+: ${PASSWORD:?"Environment variable 'PASSWORD' must be set to the password of the 'Mesos Reviewbot' Reviewboard account."}
+
+export OS='ubuntu:14.04'
+export BUILDTOOL='autotools'
+export COMPILER='gcc'
+export CONFIGURATION='--verbose'
+export ENVIRONMENT='GLOG_v=1 MESOS_VERBOSE=1'
+
+# Build the HEAD first to ensure that there are no errors prior to applying
+# the review chain.
+"${MESOS_DIR}"/support/jenkins/buildbot.sh
+
+"${MESOS_DIR}"/support/verify-reviews.py ${USERNAME} ${PASSWORD} 1

http://git-wip-us.apache.org/repos/asf/mesos/blob/df5317fa/support/jenkins/tidybot.sh
----------------------------------------------------------------------
diff --git a/support/jenkins/tidybot.sh b/support/jenkins/tidybot.sh
new file mode 100755
index 0000000..4be852b
--- /dev/null
+++ b/support/jenkins/tidybot.sh
@@ -0,0 +1,30 @@
+#!/usr/bin/env bash
+
+# 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.
+
+set -e
+set -o pipefail
+
+MESOS_DIR=$(git rev-parse --show-toplevel)
+
+function remove_image {
+  docker rmi $(docker images -q mesos/mesos-tidy) || true
+}
+
+trap remove_image EXIT
+
+"${MESOS_DIR}"/support/mesos-tidy.sh