diff options
author | Tiago Ferraz <tiago.ferraz@gmail.com> | 2015-02-11 12:37:58 -0200 |
---|---|---|
committer | Tiago Ferraz <tiago.ferraz@gmail.com> | 2015-02-11 12:37:58 -0200 |
commit | b73449aa87b1328c466a8c38894ed25b3298b724 (patch) | |
tree | 425e50804951ee518b0bc4406f4360390f70b7a1 /service/go | |
parent | a1d0142ef3cd0ad71f72a12572057f7d27974c0b (diff) |
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.
Diffstat (limited to 'service/go')
-rwxr-xr-x | service/go | 13 |
1 files changed, 12 insertions, 1 deletions
@@ -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 |