1
0
Fork 0

Allow for build-docker.sh to build with maintainer mode if needed. This is done for the go driver tests. (#3254)

This commit is contained in:
Kaveh Vahedipour 2017-09-15 14:24:02 +02:00 committed by Frank Celler
parent 0d522a6136
commit 3f796f5f55
3 changed files with 15 additions and 4 deletions

View File

@ -394,6 +394,11 @@ while [ $# -gt 0 ]; do
shift
CONFIGURE_OPTIONS+=(-DUSE_ENTERPRISE=On)
;;
--maintainer)
shift
;;
--retryPackages)
shift
RETRY_N_TIMES=$1
@ -418,8 +423,6 @@ if test -n "$LASTREV"; then
fi
fi
if [ "$GCC5" == 1 ]; then
CC=/usr/bin/gcc-5
CXX=/usr/bin/g++-5

View File

@ -9,17 +9,22 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd ${DIR}/..
BUILD_CONFIGURATION="standard"
EP=""
for i in $@; do
if test "$i" == "--enterprise"; then
EP="EP"
fi
if test "$i" == "--maintainer"; then
BUILD_CONFIGURATION="maintainer"
fi
done
export CPU_CORES=$(grep -c ^processor /proc/cpuinfo)
./Installation/Jenkins/build.sh \
standard \
${BUILD_CONFIGURATION} \
--rpath \
--parallel ${CPU_CORES} \
--package DEB \

View File

@ -19,7 +19,10 @@ DOCKERFILENAME=Dockerfile$(echo ${VERSION} | cut -d '.' -f 1,2 --output-delimite
for i in $@; do
if test "$i" == "--enterprise"; then
DEBIMAGE_NAME="arangodb3e-${DEBVERSION}_amd64"
BUILDDEB_ARGS="--enterprise git@github.com:arangodb/enterprise.git "
BUILDDEB_ARGS+=" --enterprise git@github.com:arangodb/enterprise.git "
fi
if test "$i" == "--maintainer"; then
BUILDDEB_ARGS+=" --maintainer"
fi
done
if [ ! -z "${SSH_AUTH_SOCK}" ]; then