diff --git a/bin/setupTestDatabases.sh b/bin/setupTestDatabases.sh index 1ccb97ff2..f0adf9ffd 100644 --- a/bin/setupTestDatabases.sh +++ b/bin/setupTestDatabases.sh @@ -3,6 +3,8 @@ cp config/config.json.tmpl config/config.json # Copy template file to template sed -i -- 's/"_INSERT USERNAME_"/"postgres"/g' config/config.json # change username for db sed -i -- 's/"_INSERT PASSWORD_"/""/g' config/config.json # change password for db +# Drop and create the test database if [ '$DB' = 'pgsql' ]; then psql -c 'DROP DATABASE IF EXISTS drywall-test;' -U postgres; fi if [ '$DB' = 'pgsql' ]; then psql -c 'create database drywall-test;' -U postgres; fi -cat config/config.json +# set up Codeclimate to be run on the codebase +CODECLIMATE_REPO_TOKEN=d59a2529d82564323b652ad2e84bfc4b477270f97207045fd7cd03d38d50ef22 codeclimate-test-reporter < coverage/lcov.info diff --git a/package.json b/package.json index a035c9efb..54a71b1f6 100644 --- a/package.json +++ b/package.json @@ -41,6 +41,7 @@ "bootstrap": "^3.x.x", "chai": "^3.2.0", "chai-as-promised": "^5.1.0", + "codeclimate-test-reporter": "^0.3.0", "factory-girl": "^2.2.2", "factory-girl-sequelize": "^1.0.0", "faker": "^3.0.1", @@ -58,6 +59,7 @@ "grunt-nodemon": "^0.4.x", "grunt-sequelize-fixtures": "^0.1.0", "html5shiv": "^3.x.x", + "istanbul": "^0.4.2", "jquery": "^2.x.x", "jquery.cookie": "^1.x.x", "mocha": "^2.3.0",