source: sasview/build_tools/jenkins_linux_pylint.sh @ aab23e3

magnetic_scattrelease-4.2.2ticket-1009ticket-1094-headlessticket-1242-2d-resolutionticket-1243ticket-1249ticket885unittest-saveload
Last change on this file since aab23e3 was 9621a97, checked in by Doucet, Mathieu <doucetm@…>, 10 years ago

Make sure pylint works correctly

  • Property mode set to 100755
File size: 523 bytes
Line 
1#! /bin/sh
2set -x
3
4# try to find reasonable settings, if not provided in the environment
5PYTHON=${PYTHON:-`which python`}
6PYLINT=${PYLINT:-`which pylint`}
7BUILD_TOOLS_DIR=`dirname $0`
8WORKSPACE=${WORKSPACE:-`readlink -f $BUILD_TOOLS_DIR/..`}
9# WORKSPACE top level of source
10
11export PYTHONPATH=$WORKSPACE/sasview-install:$WORKSPACE/utils:$PYTHONPATH
12
13cd $WORKSPACE
14rm -f test/sasview.txt
15
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.