1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-02-14 00:19:16 +01:00

Merge pull request #72 from finn-no/test_in_pg_virtualenv

Use pg_virtualenv for database tests in bamboo
This commit is contained in:
Gard Rimestad 2014-12-15 10:29:05 +01:00
commit fc90606287
2 changed files with 5 additions and 2 deletions

View File

@ -10,7 +10,7 @@
}, },
"tasks": { "tasks": {
"deploy": [ "deploy": [
{"command": "npm install && npm test && npm run build"}, {"command": "npm install && npm run pg-virtualenv-test && npm run build"},
{"command": "tar -cvzf unleash-server.tar.gz --exclude=unleash-server.tar.gz --exclude=.git *"}, {"command": "tar -cvzf unleash-server.tar.gz --exclude=unleash-server.tar.gz --exclude=.git *"},
{ {
"command": "mvn deploy:deploy-file -Durl=http://mavenproxy.finntech.no/finntech-internal-snapshot/ -DrepositoryId=finntech-internal-snapshot -Dfile=unleash-server.tar.gz -DgroupId=no.finntech.unleash -DartifactId=unleash-server -Dversion=0.1337-SNAPSHOT -Dpackaging=tar.gz", "command": "mvn deploy:deploy-file -Durl=http://mavenproxy.finntech.no/finntech-internal-snapshot/ -DrepositoryId=finntech-internal-snapshot -Dfile=unleash-server.tar.gz -DgroupId=no.finntech.unleash -DartifactId=unleash-server -Dversion=0.1337-SNAPSHOT -Dpackaging=tar.gz",
@ -36,7 +36,7 @@
], ],
"default": [ "default": [
{"command": "npm install && npm test"}, {"command": "npm install && npm run pg-virtualenv-test"},
] ]
} }

View File

@ -22,6 +22,9 @@
"dev": "NODE_ENV=development supervisor --ignore ./node_modules/,./public/js server.js", "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", "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", "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",
"db-migrate-testdb": "DATABASE_URL=$TEST_DATABASE_URL ./node_modules/.bin/db-migrate up",
"tdd": "mocha --watch test test/*", "tdd": "mocha --watch test test/*",
"test-bamboo-ci": "mocha test test/*", "test-bamboo-ci": "mocha test test/*",
"coverage": "istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec", "coverage": "istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec",