-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #39 from neo4j-contrib/Neo4J-update-t-4.1
Neo4J-update-t-4.1
- Loading branch information
Showing
21 changed files
with
178 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,29 @@ | ||
language: python | ||
sudo: required | ||
python: | ||
- "2.7" | ||
- "3.4" | ||
- "3.5" | ||
- "3.6" | ||
install: "python setup.py install" | ||
script: | ||
- cd tests | ||
- python manage.py test | ||
- "3.7" | ||
- "3.8" | ||
- "3.9" | ||
|
||
env: | ||
- NEO4J_VERSION="3.1.0" | ||
- NEO4J_VERSION="3.5.24" | ||
- NEO4J_VERSION="4.0.9" | ||
- NEO4J_VERSION="4.1.4" | ||
- NEO4J_VERSION="4.2.0" | ||
before_install: | ||
- sudo apt-get update && sudo apt-get install oracle-java8-installer | ||
- export JAVA_HOME=/usr/lib/jvm/java-8-oracle | ||
- wget dist.neo4j.org/neo4j-community-$NEO4J_VERSION-unix.tar.gz | ||
- tar -xzf neo4j-community-$NEO4J_VERSION-unix.tar.gz | ||
- neo4j-community-$NEO4J_VERSION/bin/neo4j start | ||
- sudo add-apt-repository -y ppa:openjdk-r/ppa | ||
- sudo apt-get update && sudo apt-get install openjdk-11-jre-headless | ||
- curl -L http://dist.neo4j.org/neo4j-community-$NEO4J_VERSION-unix.tar.gz | tar xz | ||
install: "python setup.py install" | ||
before_script: | ||
- neo4j-community-$NEO4J_VERSION/bin/neo4j-admin set-initial-password foobar | ||
- JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64 neo4j-community-$NEO4J_VERSION/bin/neo4j start | ||
- export DJANGO_SETTINGS_MODULE=settings | ||
- sleep 10 | ||
script: | ||
- cd tests | ||
- ./manage.py install_labels | ||
- ./manage.py migrate | ||
- export DJANGO_SETTINGS_MODULE=tests.settings | ||
- pytest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[pytest] | ||
DJANGO_SETTINGS_MODULE = tests.settings |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,7 @@ | ||
#!/usr/bin/env python | ||
import os | ||
import sys | ||
|
||
if __name__ == "__main__": | ||
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "settings") | ||
|
||
from django.core.management import execute_from_command_line | ||
|
||
execute_from_command_line(sys.argv) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Generated by Django 2.2 on 2020-11-20 15:58 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
initial = True | ||
|
||
dependencies = [ | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='Library', | ||
fields=[ | ||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('name', models.CharField(max_length=10)), | ||
], | ||
), | ||
] |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +0,0 @@ | ||
from __future__ import print_function | ||
|
||
from neomodel import db, change_neo4j_password, clear_neo4j_database | ||
from neo4j.v1 import CypherError | ||
|
||
# Travis default password dance | ||
try: | ||
clear_neo4j_database(db) | ||
except CypherError as ce: | ||
# handle instance without password being changed | ||
if 'The credentials you provided were valid, but must be changed before you can use this instance' in str(ce): | ||
change_neo4j_password(db, 'test') | ||
db.set_connection('bolt://neo4j:test@localhost:7687') | ||
|
||
print("New database with no password set, setting password to 'test'") | ||
print("Please 'export NEO4J_BOLT_URL=bolt://neo4j:test@localhost:7687' for subsequent test runs") | ||
else: | ||
raise ce | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.