1
0
Fork 0

Feature/tag starter with release (#2886)

* tag the ArangoDB Starter as part of the release process.

* check for tools to be installed
This commit is contained in:
Wilfried Goesgens 2017-07-27 13:36:01 +02:00 committed by Frank Celler
parent 7e03187123
commit 31cc349d05
2 changed files with 54 additions and 7 deletions

View File

@ -631,12 +631,16 @@ if test -n "${ENTERPRISE_GIT_URL}" ; then
fi
if test "${DOWNLOAD_STARTER}" == 1; then
# we utilize https://developer.github.com/v3/repos/ to get the newest release:
STARTER_REV=$(curl -s https://api.github.com/repos/arangodb-helper/arangodb/releases | \
grep tag_name | \
head -n 1 | \
${SED} -e "s;.*: ;;" -e 's;";;g' -e 's;,;;'
)
if test -f ${SRC}/STARTER_REV; then
STARTER_REV=$(cat ${SRC}/STARTER_REV)
else
# we utilize https://developer.github.com/v3/repos/ to get the newest release:
STARTER_REV=$(curl -s https://api.github.com/repos/arangodb-helper/arangodb/releases | \
grep tag_name | \
head -n 1 | \
${SED} -e "s;.*: ;;" -e 's;";;g' -e 's;,;;'
)
fi
STARTER_URL=$(curl -s "https://api.github.com/repos/arangodb-helper/arangodb/releases/tags/${STARTER_REV}" | \
grep browser_download_url | \
grep "${OSNAME}" | \

View File

@ -14,6 +14,42 @@ EXAMPLES=1
LINT=1
PARALLEL=8
SED=sed
isMac=0
if test "$(uname)" == "Darwin"; then
isMac=1
SED=gsed
OSNAME=darwin
fi
if flex --version; then
echo "flex found."
else
echo "flex missing from your system"
exit 1
fi
if npm --version; then
echo "npm found."
else
echo "npm missing from your system"
exit 1
fi
if grunt --version; then
echo "grunt found."
else
echo "grunt missing from your system"
exit 1
fi
if gitbook --version; then
echo "gitbook found."
else
echo "gitbook missing from your system"
exit 1
fi
if [ "$#" -lt 1 ]; then
echo "usage: $0 <major>.<minor>.<revision>"
exit 1
@ -162,6 +198,12 @@ if [ "$LINT" == "1" ]; then
./utils/jslint.sh
fi
# we utilize https://developer.github.com/v3/repos/ to get the newest release of the arangodb starter:
curl -s https://api.github.com/repos/arangodb-helper/arangodb/releases | \
grep tag_name | \
head -n 1 | \
${SED} -e "s;.*: ;;" -e 's;";;g' -e 's;,;;' > STARTER_REV
git add -f \
README \
arangod/Aql/tokens.cpp \
@ -171,7 +213,8 @@ git add -f \
lib/Basics/voc-errors.h \
lib/Basics/voc-errors.cpp \
js/common/bootstrap/errors.js \
CMakeLists.txt
CMakeLists.txt \
STARTER_REV
if [ "$EXAMPLES" == "1" ]; then
echo "EXAMPLES"