From ffe6e58d65bbec437fd075f48a1e0cd70b0402e2 Mon Sep 17 00:00:00 2001 From: Gard Rimestad Date: Mon, 15 Dec 2014 10:45:10 +0100 Subject: [PATCH] Refactoring pg-virtualenv-test --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 65c1e1d483..32b6c26d9b 100644 --- a/package.json +++ b/package.json @@ -22,8 +22,8 @@ "dev": "NODE_ENV=development supervisor --ignore ./node_modules/,./public/js server.js", "test": "export PORT=4243 ; jest && jshint server.js lib test && jsxhint public/js/**/*.jsx && mocha test test/*.js && npm run coverage", "docker-test": "export PORT=4243 ; ./scripts/docker-postgres.sh", - "pg-virtualenv-test": "pg_virtualenv npm run pg-virtualenv-chain", - "pg-virtualenv-chain": "export TEST_DATABASE_URL=postgres://$PGUSER:$PGPASSWORD@localhost:$PGPORT/postgres ; npm run db-migrate-testdb ; npm test", + "pg-virtualenv-test": "pg_virtualenv npm run pg-virtualenv-chain", + "pg-virtualenv-chain": "export TEST_DATABASE_URL=postgres://$PGUSER:$PGPASSWORD@localhost:$PGPORT/postgres ; npm run db-migrate-testdb && npm test", "db-migrate-testdb": "DATABASE_URL=$TEST_DATABASE_URL ./node_modules/.bin/db-migrate up", "tdd": "mocha --watch test test/*", "test-bamboo-ci": "mocha test test/*",