Skip to content

Commit

Permalink
travis: corrected neo4j connection
Browse files Browse the repository at this point in the history
  • Loading branch information
al66 committed Oct 20, 2019
1 parent e828781 commit 0a5b8bf
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
22 changes: 11 additions & 11 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ language: node_js
services:
- docker
- redis-server
- neo4j
#- neo4j

#env:
env:
# Test across multiple versions of Neo4j:
#- NEO4J_VERSION="3.5.12"
- NEO4J_VERSION="3.5.12"

addons:
hosts:
Expand All @@ -28,14 +28,14 @@ before_install:
- docker run -d --name zookeeper -p 2181:2181 zookeeper
- docker pull wurstmeister/kafka
- docker run -d --name kafka --link zookeeper:zookeeper -e KAFKA_ADVERTISED_HOST_NAME=kafka -e KAFKA_ADVERTISED_PORT=9092 -e KAFKA_ZOOKEEPER_CONNECT=zookeeper:2181 -e KAFKA_AUTO_CREATE_TOPICS_ENABLE=true -e KAFKA_CREATE_TOPICS='events' -v /var/run/docker.sock:/var/run/docker.sock -p 9092:9092 wurstmeister/kafka
## Install Neo4j locally:
#- 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
## HACK need to change the password initially; changing it and then reverting:
#- sleep 10 # give Neo4J some time to start
#- curl -v POST http://neo4j:neo4j@localhost:7474/user/neo4j/password -d"password=neo4j2"
#- curl -v POST http://neo4j:neo4j2@localhost:7474/user/neo4j/password -d"password=neo4j"
# Install Neo4j locally:
- 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
# HACK need to change the password initially; changing it and then reverting:
- sleep 10 # give Neo4J some time to start
- curl -v POST http://neo4j:neo4j@127.0.0.1:7474/user/neo4j/password -d"password=neo4j2"
- curl -v POST http://neo4j:neo4j2@127.0.0.1:7474/user/neo4j/password -d"password=neo4j"

install:
- npm install
Expand Down
2 changes: 1 addition & 1 deletion travis.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
process.env.URI = "bolt://localhost:7474";
process.env.URI = "bolt://localhost:7687";
process.env.KAFKA_BROKER = "kafka:9092";
process.env.REDIS_HOST = "127.0.0.1";
process.env.REDIS_PORT = "6379";
Expand Down

0 comments on commit 0a5b8bf

Please sign in to comment.