memgraph/tests/drivers/python/run.sh
Teon Banek 1c5658f294 Add C# driver test examples
Summary:
Freeze python's neo4j driver version.
Add multiple transactions example in C#.
Update Python example to 1.5.0 Neo4j driver.

Reviewers: mferencevic, buda, mislav.bradac

Reviewed By: mislav.bradac

Subscribers: dgleich, pullbot

Differential Revision: https://phabricator.memgraph.io/D949
2017-11-10 15:46:56 +01:00

30 lines
521 B
Bash
Executable File

#!/bin/bash
set -e
VIRTUALENV=virtualenv
PIP=pip
PYTHON=python
WORKING_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd ${WORKING_DIR}
# system check
if ! which $VIRTUALENV >/dev/null; then
echo "Please install virtualenv!"
exit 1
fi
# setup virtual environment
if [ ! -d "ve3" ]; then
virtualenv -p python3 ve3 || exit 1
fi
source ve3/bin/activate
$PIP install --upgrade pip
$PIP install neo4j-driver==1.5.0
# execute test
$PYTHON basic.py
$PYTHON max_query_length.py
$PYTHON transactions.py