File tree Expand file tree Collapse file tree 3 files changed +69
-0
lines changed
Expand file tree Collapse file tree 3 files changed +69
-0
lines changed Original file line number Diff line number Diff line change 1+ language : java
2+
3+ before_script :
4+ - chmod 777 ./tests/travis/setup_arangodb.sh
5+ - ./tests/travis/setup_arangodb.sh
6+
7+ jdk :
8+ - oraclejdk7
9+
Original file line number Diff line number Diff line change 11
2+ ![ ArangoDB-Logo] ( https://www.arangodb.org/wp-content/uploads/2012/10/logo_arangodb_transp.png )
3+
4+ # arangodb-java-driver
5+
6+ [ ![ Build Status] ( https://secure.travis-ci.org/triAGENS/arangodb-java-driver.png )] ( http://travis-ci.org/triAGENS/arangodb-java-driver )
7+
28This library is a Java driver for ArangoDB.
39
410Supported version: ArangoDB-2.4.x or ArangoDB 2.5.x
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ DIR=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd ) "
4+ cd $DIR
5+
6+ VERSION=2.5.2
7+ NAME=ArangoDB-$VERSION
8+
9+ if [ ! -d " $DIR /$NAME " ]; then
10+ # download ArangoDB
11+ echo " wget http://www.arangodb.org/repositories/travisCI/$NAME .tar.gz"
12+ wget http://www.arangodb.org/repositories/travisCI/$NAME .tar.gz
13+ echo " tar zxf $NAME .tar.gz"
14+ tar zvxf $NAME .tar.gz
15+ fi
16+
17+ ARCH=$( arch)
18+ PID=$( echo $PPID )
19+ TMP_DIR=" /tmp/arangodb.$PID "
20+ PID_FILE=" /tmp/arangodb.$PID .pid"
21+ ARANGODB_DIR=" $DIR /$NAME "
22+ ARANGOD=" ${ARANGODB_DIR} /bin/arangod_x86_64"
23+
24+ # create database directory
25+ mkdir ${TMP_DIR}
26+
27+ echo " Starting ArangoDB '${ARANGOD} '"
28+
29+ ${ARANGOD} \
30+ --database.directory ${TMP_DIR} \
31+ --configuration none \
32+ --server.endpoint tcp://127.0.0.1:8529 \
33+ --javascript.app-path ${ARANGODB_DIR} /js/apps \
34+ --javascript.startup-directory ${ARANGODB_DIR} /js \
35+ --server.disable-authentication false &
36+
37+ sleep 2
38+
39+ echo " Check for arangod process"
40+ process=$( ps auxww | grep " bin/arangod" | grep -v grep)
41+
42+ if [ " x$process " == " x" ]; then
43+ echo " no 'arangod' process found"
44+ echo " ARCH = $ARCH "
45+ exit 1
46+ fi
47+
48+ echo " Waiting until ArangoDB is ready on port 8529"
49+ while [[ -z ` curl -s ' http://127.0.0.1:8529/_api/version' ` ]] ; do
50+ echo -n " ."
51+ sleep 2s
52+ done
53+
54+ echo " ArangoDB is up"
You can’t perform that action at this time.
0 commit comments