File: build_linux.sh

package info (click to toggle)
sasmodels 1.0.10-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 16,488 kB
  • sloc: python: 26,277; ansic: 8,036; makefile: 150; sh: 63
file content (24 lines) | stat: -rwxr-xr-x 470 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash

test -z $WORKSPACE && WORKSPACE=.

EASY_INSTALL=${EASY_INSTALL:-`which easy_install`}
cd $WORKSPACE
if [ ! -d "utils" ]; then
    mkdir utils
fi
export PYTHONPATH=$WORKSPACE/utils:$PYTHONPATH

"$EASY_INSTALL" -d "$WORKSPACE/utils" unittest-xml-reporting pylint

# Run tests
STATUS=0
python -m sasmodels.model_test -v all || STATUS=$?
python -m sasmodels.resolution || STATUS=$?

# Run lint
python extra/run-pylint.py > pylint_violations.txt

exit $STATUS