From b73449aa87b1328c466a8c38894ed25b3298b724 Mon Sep 17 00:00:00 2001 From: Tiago Ferraz Date: Wed, 11 Feb 2015 12:37:58 -0200 Subject: General Refactoring Refactored __init__ method on app_test_client to be succint, go to say what is doing and package.json to execute handlebars from the whole path. --- service/go | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'service/go') diff --git a/service/go b/service/go index 71949a47..308e4f02 100755 --- a/service/go +++ b/service/go @@ -11,38 +11,49 @@ function resolveNumOfCores { } function setuppy { + echo "Installing Pixelated User Agent." pip install -r test_requirements.txt python setup.py develop $* pip uninstall -y scrypt; pip install scrypt pip uninstall -y gnupg; pip install gnupg==1.2.5 + echo "Done." } function setupjs { + echo "Installing node and bower libraries." cd ../web-ui npm install node_modules/bower/bin/bower install --config.interactive=false --allow-root LC_ALL=en_US.UTF-8 ./go build cd - + echo "Done." } function runIntegrationTests { + echo "Executing Integration Tests." resolveNumOfCores - echo $NUM_OF_CORES trial -j $NUM_OF_CORES --reporter=text $* test.integration + echo "Done." } function runUnitTests { + echo "Executing Unit Tests." trial --reporter=text $* test.unit + echo "Done." } function runPep8 { + echo "Verifying conformation to pep8." pep8 pixelated test --ignore=E501 + echo "Done." } function runJSHint { + echo "Executing JSHint." cd ../web-ui LC_ALL=en_US.UTF-8 ./go jshint cd - + echo "Done." } if [ "$1" == 'test' ]; then -- cgit v1.2.3