From e3a44d0a9288dc2a9137a37d0bbab570c40908d4 Mon Sep 17 00:00:00 2001 From: Jari Bakken Date: Fri, 12 Dec 2014 14:11:09 +0100 Subject: [PATCH] Use TEST_DATABASE_URL for running test against a separate DB. --- .travis.yml | 2 +- README.md | 13 +++++++++---- lib/dbPool.js | 33 +++++++++++++++++++++++++-------- test/specHelper.js | 2 +- 4 files changed, 36 insertions(+), 14 deletions(-) diff --git a/.travis.yml b/.travis.yml index 0bf89e16c2..c28173ddd6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,7 +1,7 @@ language: node_js node_js: - "0.10" -env: DATABASE_URL=postgres://postgres@localhost:5432/unleash_test +env: TEST_DATABASE_URL=postgres://postgres@localhost:5432/unleash_test before_script: - echo '--timeout 10000' > test/mocha.opts - psql -c 'create database unleash_test;' -U postgres diff --git a/README.md b/README.md index 8f1709eca6..9717ceac13 100644 --- a/README.md +++ b/README.md @@ -13,19 +13,22 @@ Known client implementations: ## Development -### Create a local unleash-db on postgres +### Create a local unleash databases in postgres ```bash $ psql postgres <