2013-10-04 18:21:30 -04:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
2014-05-13 19:12:52 -04:00
|
|
|
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
2013-10-04 18:21:30 -04:00
|
|
|
|
2014-05-13 19:12:52 -04:00
|
|
|
$SCRIPT_DIR/third_party/ycmd/run_tests.sh "$@"
|
2013-10-04 18:21:30 -04:00
|
|
|
|
2014-05-13 19:12:52 -04:00
|
|
|
flake8 --select=F,C9 --max-complexity=10 $SCRIPT_DIR/python
|
2013-10-04 18:21:30 -04:00
|
|
|
|
2014-05-13 19:12:52 -04:00
|
|
|
for directory in $SCRIPT_DIR/third_party/*; do
|
2013-10-04 18:21:30 -04:00
|
|
|
if [ -d "${directory}" ]; then
|
2014-05-13 19:12:52 -04:00
|
|
|
export PYTHONPATH=${directory}:$PYTHONPATH
|
2013-10-04 18:21:30 -04:00
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
2014-05-14 14:07:10 -04:00
|
|
|
|
|
|
|
for directory in $SCRIPT_DIR/third_party/ycmd/third_party/*; do
|
|
|
|
if [ -d "${directory}" ]; then
|
|
|
|
export PYTHONPATH=${directory}:$PYTHONPATH
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
2014-05-13 19:12:52 -04:00
|
|
|
nosetests -v $SCRIPT_DIR/python
|