From 3f2a0b1ec641ba5ab49cbe5f3aefe86ee45720bb Mon Sep 17 00:00:00 2001 From: Anatoliy Chakkaev Date: Sat, 10 Mar 2012 16:27:06 +0400 Subject: [PATCH] Added neo4j support for travis ci --- .travis.yml | 4 +++- package.json | 2 +- support/ci/neo4j.sh | 5 +++++ 3 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 support/ci/neo4j.sh diff --git a/.travis.yml b/.travis.yml index 7eb1eb01..df3cac3b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,7 +2,9 @@ language: node_js node_js: - 0.4 - 0.6 -before_install: git submodule init && git submodule --quiet update +before_install: + - git submodule init && git submodule --quiet update + - ./support/ci/neo4j.sh before_script: - "mysql -e 'create database myapp_test;'" - "psql -c 'create database myapp_test;' -U postgres" diff --git a/package.json b/package.json index e1c71340..5b76b3ca 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ }, "main": "index.js", "scripts": { - "test": "EXCEPT=neo4j nodeunit test/*_test*" + "test": "nodeunit test/*_test*" }, "engines": [ "node >= 0.4.0" diff --git a/support/ci/neo4j.sh b/support/ci/neo4j.sh new file mode 100644 index 00000000..98f90fc7 --- /dev/null +++ b/support/ci/neo4j.sh @@ -0,0 +1,5 @@ +#!/bin/sh + +# travis-ci.org now provides neo4j server but it is not started on boot +which neo4j && sudo neo4j start +sleep 5