summaryrefslogtreecommitdiff
path: root/service/go
diff options
context:
space:
mode:
authorTiago Ferraz <tiago.ferraz@gmail.com>2015-02-11 12:37:58 -0200
committerTiago Ferraz <tiago.ferraz@gmail.com>2015-02-11 12:37:58 -0200
commitb73449aa87b1328c466a8c38894ed25b3298b724 (patch)
tree425e50804951ee518b0bc4406f4360390f70b7a1 /service/go
parenta1d0142ef3cd0ad71f72a12572057f7d27974c0b (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-xservice/go13
1 files changed, 12 insertions, 1 deletions
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