Added neo4j support for travis ci

This commit is contained in:
Anatoliy Chakkaev 2012-03-10 16:27:06 +04:00
parent 3952c329df
commit 3f2a0b1ec6
3 changed files with 9 additions and 2 deletions

View File

@ -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"

View File

@ -8,7 +8,7 @@
},
"main": "index.js",
"scripts": {
"test": "EXCEPT=neo4j nodeunit test/*_test*"
"test": "nodeunit test/*_test*"
},
"engines": [
"node >= 0.4.0"

5
support/ci/neo4j.sh Normal file
View File

@ -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