Commit 11fb4f66 by Ben Patterson

Merge pull request #9990 from edx/benp/improve-node-js-path

Add node_modules to the path via the jenkins-common script instead of…
parents 7557620d df821f35
...@@ -70,7 +70,6 @@ case "$TEST_SUITE" in ...@@ -70,7 +70,6 @@ case "$TEST_SUITE" in
mkdir -p reports mkdir -p reports
echo "Finding jshint violations and storing report..." echo "Finding jshint violations and storing report..."
PATH=$PATH:node_modules/.bin
paver run_jshint -l $JSHINT_THRESHOLD > jshint.log || { cat jshint.log; EXIT=1; } paver run_jshint -l $JSHINT_THRESHOLD > jshint.log || { cat jshint.log; EXIT=1; }
echo "Running code complexity report (python)." echo "Running code complexity report (python)."
paver run_complexity > reports/code_complexity.log || echo "Unable to calculate code complexity. Ignoring error." paver run_complexity > reports/code_complexity.log || echo "Unable to calculate code complexity. Ignoring error."
......
...@@ -34,3 +34,6 @@ fi ...@@ -34,3 +34,6 @@ fi
# Activate the Python virtualenv # Activate the Python virtualenv
source $HOME/edx-venv/bin/activate source $HOME/edx-venv/bin/activate
# add the node_js packages dir to PATH
PATH=$PATH:node_modules/.bin
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment