summaryrefslogtreecommitdiff
path: root/service/go
diff options
context:
space:
mode:
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