Skip to content

Commit 4c6ae4d

Browse files
CI: Make sure we set up a Neo4J user before running tests
1 parent 1a20a69 commit 4c6ae4d

File tree

4 files changed

+15
-10
lines changed

4 files changed

+15
-10
lines changed

.travis.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
language: clojure
22
before_install:
33
- "./bin/ci/start_neo4j_server.sh"
4-
script: "lein test :default"
4+
before_script: "./bin/ci/before_script.sh"
5+
script: "./bin/ci/script.sh"
56
jdk:
67
- oraclejdk8
78
env:

bin/ci/before_script.sh

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/sh
2+
3+
lein run -m clojurewerkz.neocons.rest.passwords http://localhost:7474/ neo4j neo4j qwerty

bin/ci/script.sh

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/bin/sh
2+
3+
# GrapheneDB account needs a refresh
4+
# if test "$TRAVIS_SECURE_ENV_VARS" = 'true'; then
5+
# NEO4J_LOGIN=neo4j NEO4J_PASSWORD=qwerty lein test :travis
6+
# else
7+
# NEO4J_LOGIN=neo4j NEO4J_PASSWORD=qwerty lein test :default
8+
# fi
9+
10+
NEO4J_LOGIN=neo4j NEO4J_PASSWORD=qwerty lein test :default

bin/ci/test.sh

-9
This file was deleted.

0 commit comments

Comments
 (0)