Skip to content

Commit 730397f

Browse files
committed
attempt to fix download URL for arangod
1 parent 54b2631 commit 730397f

File tree

1 file changed

+12
-18
lines changed

1 file changed

+12
-18
lines changed

tests/travis/setup_arangodb.sh

Lines changed: 12 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -33,46 +33,38 @@ echo "./phpunit --version"
3333
./phpunit --version
3434

3535
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
36-
echo "cd $DIR"
37-
cd "$DIR"
36+
cd $DIR
3837

39-
VERSION="devel"
40-
NAME="ArangoDB-$VERSION"
38+
VERSION=devel
39+
NAME=ArangoDB-$VERSION
4140

4241
if [ ! -d "$DIR/$NAME" ]; then
4342
# download ArangoDB
44-
echo "wget --no-check-certificate http://www.arangodb.com/repositories/nightly/travisCI/$NAME.tar.gz"
45-
wget --no-check-certificate http://www.arangodb.com/repositories/nightly/travisCI/$NAME.tar.gz
43+
echo "curl -L -o $NAME.tar.gz https://www.arangodb.org/repositories/travisCI/$NAME.tar.gz"
44+
curl -L -o $NAME.tar.gz https://www.arangodb.org/repositories/travisCI/$NAME.tar.gz
4645
echo "tar zxf $NAME.tar.gz"
47-
tar zxf $NAME.tar.gz
46+
tar zvxf $NAME.tar.gz
4847
fi
4948

5049
ARCH=$(arch)
5150
PID=$(echo $PPID)
5251
TMP_DIR="/tmp/arangodb.$PID"
5352
PID_FILE="/tmp/arangodb.$PID.pid"
5453
ARANGODB_DIR="$DIR/$NAME"
55-
56-
ARANGOD="${ARANGODB_DIR}/bin/arangod"
57-
if [ "$ARCH" == "x86_64" ]; then
58-
ARANGOD="${ARANGOD}_x86_64"
59-
fi
54+
ARANGOD="${ARANGODB_DIR}/bin/arangod_x86_64"
6055

6156
# create database directory
6257
mkdir ${TMP_DIR}
6358

6459
echo "Starting ArangoDB '${ARANGOD}'"
65-
echo "pwd: `pwd`"
6660

6761
${ARANGOD} \
6862
--database.directory ${TMP_DIR} \
6963
--configuration none \
7064
--server.endpoint tcp://127.0.0.1:8529 \
71-
--javascript.startup-directory ${ARANGODB_DIR}/js \
7265
--javascript.app-path ${ARANGODB_DIR}/js/apps \
73-
--javascript.allow-admin-execute true \
66+
--javascript.startup-directory ${ARANGODB_DIR}/js \
7467
--database.maximal-journal-size 1048576 \
75-
--database.force-sync-properties false \
7668
--server.authentication true &
7769

7870
sleep 2
@@ -89,17 +81,19 @@ fi
8981
echo "Waiting until ArangoDB is ready on port 8529"
9082

9183
n=0
92-
timeout=60
84+
# timeout value for startup
85+
timeout=60
9386
while [[ (-z `curl -H 'Authorization: Basic cm9vdDo=' -s 'http://127.0.0.1:8529/_api/version' `) && (n -lt timeout) ]] ; do
9487
echo -n "."
9588
sleep 1s
9689
n=$[$n+1]
9790
done
91+
9892
if [[ n -eq timeout ]];
9993
then
10094
echo "Could not start ArangoDB. Timeout reached."
10195
exit 1
10296
fi
10397

104-
echo "ArangoDB is up"
10598

99+
echo "ArangoDB is up"

0 commit comments

Comments
 (0)