Skip to content

Commit

Permalink
CI: Make sure we set up a Neo4J user before running tests
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelklishin committed Jan 17, 2018
1 parent 1a20a69 commit 4c6ae4d
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 10 deletions.
3 changes: 2 additions & 1 deletion .travis.yml
@@ -1,7 +1,8 @@
language: clojure
before_install:
- "./bin/ci/start_neo4j_server.sh"
script: "lein test :default"
before_script: "./bin/ci/before_script.sh"
script: "./bin/ci/script.sh"
jdk:
- oraclejdk8
env:
Expand Down
3 changes: 3 additions & 0 deletions bin/ci/before_script.sh
@@ -0,0 +1,3 @@
#!/bin/sh

lein run -m clojurewerkz.neocons.rest.passwords http://localhost:7474/ neo4j neo4j qwerty
10 changes: 10 additions & 0 deletions bin/ci/script.sh
@@ -0,0 +1,10 @@
#!/bin/sh

# GrapheneDB account needs a refresh
# if test "$TRAVIS_SECURE_ENV_VARS" = 'true'; then
# NEO4J_LOGIN=neo4j NEO4J_PASSWORD=qwerty lein test :travis
# else
# NEO4J_LOGIN=neo4j NEO4J_PASSWORD=qwerty lein test :default
# fi

NEO4J_LOGIN=neo4j NEO4J_PASSWORD=qwerty lein test :default
9 changes: 0 additions & 9 deletions bin/ci/test.sh

This file was deleted.

0 comments on commit 4c6ae4d

Please sign in to comment.