source:
sasview/build_tools/jenkins_linux_pylint.sh
@
f205d3a
Last change on this file since f205d3a was 9621a97, checked in by Doucet, Mathieu <doucetm@…>, 10 years ago | |
---|---|
|
|
File size: 523 bytes |
Rev | Line | |
---|---|---|
[280d5c0] | 1 | #! /bin/sh |
[9939b16] | 2 | set -x |
[280d5c0] | 3 | |
4 | # try to find reasonable settings, if not provided in the environment | |
5 | PYTHON=${PYTHON:-`which python`} | |
6 | PYLINT=${PYLINT:-`which pylint`} | |
7 | BUILD_TOOLS_DIR=`dirname $0` | |
8 | WORKSPACE=${WORKSPACE:-`readlink -f $BUILD_TOOLS_DIR/..`} | |
9 | # WORKSPACE top level of source | |
10 | ||
[9939b16] | 11 | export PYTHONPATH=$WORKSPACE/sasview-install:$WORKSPACE/utils:$PYTHONPATH |
[280d5c0] | 12 | |
13 | cd $WORKSPACE | |
[9621a97] | 14 | rm -f test/sasview.txt |
[280d5c0] | 15 | |
[9621a97] | 16 | $PYLINT --rcfile "$WORKSPACE/build_tools/pylint.rc" -f parseable sasview-install/sasview*.egg/sas sasview > test/sasview.txt || exit 0 |
Note: See TracBrowser
for help on using the repository browser.