diff options
| author | krad <krad@fb.com> | 2017-08-17 14:09:13 -0700 | 
|---|---|---|
| committer | Jeff Darcy <jeff@pl.atyp.us> | 2017-08-18 12:28:02 +0000 | 
| commit | 2f343120302e7ed3ea42f276a0a92e557582ad51 (patch) | |
| tree | 51f2b83e4df7ba4f11ed224ffb893661c89dff1c /build.sh | |
| parent | 233156d6fc1eabed41fcae6a877db3d66ff6f073 (diff) | |
fb-smoke: Add fb-smoke, build and build_env to r-3.8
Summary:
The new plan is to keep fb-smoke, build and build_env in every version of gluster. Changes in r-3.6 will be
ported to r-3.8 henceforth. We reference fbcode for remote testing.
Test Plan: Run unit, asan, valgrind
Reviewers: junsongli, sshreyas, jdarcy
Reviewed By: jdarcy
Subscribers: #posix_storage
Differential Revision: https://phabricator.intern.facebook.com/D5653092
Tasks: T20082902
Change-Id: Iebf4cfc1752e97d6f9efe80af88ee06c21103d83
Signature: t1:5653092:1503006640:642f075cba3a7295af42638e100d2e48f426f07a
Reviewed-on: https://review.gluster.org/18055
Smoke: Gluster Build System <jenkins@build.gluster.org>
Reviewed-by: Jeff Darcy <jeff@pl.atyp.us>
Tested-by: Jeff Darcy <jeff@pl.atyp.us>
CentOS-regression: Gluster Build System <jenkins@build.gluster.org>
Diffstat (limited to 'build.sh')
| -rwxr-xr-x | build.sh | 24 | 
1 files changed, 24 insertions, 0 deletions
diff --git a/build.sh b/build.sh new file mode 100755 index 00000000000..2eb5ae75424 --- /dev/null +++ b/build.sh @@ -0,0 +1,24 @@ +#!/bin/bash + +PACKAGES="automake libtool gperftools-devel gperftools-debuginfo gperftools-libs \ +          glib2-devel jemalloc jemalloc-devel fb-gcc flex bison openssl-devel libxml2-devel\ +          libacl-devel userspace-rcu-devel lvm2 python-devel" + +if [ $(/usr/lib/rpm/redhat/dist.sh --distnum) -eq "7" ]; then +  PACKAGES="$PACKAGES libtirpc libtirpc-devel-0.2.4 devtoolset-4-binutils devtoolset-4-gcc devtoolset-4-runtime" +elif [ $(/usr/lib/rpm/redhat/dist.sh --distnum) -eq "6" ]; then +  PACKAGES="$PACKAGES libfbtirpc libfbtirpc-devel libgssglue libgssglue-devel devtoolset-2-binutils devtoolset-2-gcc devtoolset-2-runtime" +else +  echo "Centos $(/usr/lib/rpm/redhat/dist.sh --distnum) is not currently supported" +  exit 1 +fi + +# Skip this for Jekins automated builds (they have these packages already) +# as the sudo will cause the build to fail +[ $USER == "svcscm" ] || sudo yum install $PACKAGES -y + +source ./build_env + +./autogen.sh || exit 1 +./configure $GF_CONF_OPTS +make -j || exit 1  | 
