Skip to content

Commit

Permalink
Allow user to skip build when running tests
Browse files Browse the repository at this point in the history
  • Loading branch information
puremourning committed Feb 12, 2015
1 parent 035b6ca commit d6c9bc1
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,28 @@ set -e

SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"

"${SCRIPT_DIR}/third_party/ycmd/build.py"
function usage {
echo "Usage: $0 [--skip-build]"
exit 0
}

flake8 --select=F,C9 --max-complexity=10 "${SCRIPT_DIR}/python"
skip_build=false

for flag in $@; do
case "$flag" in
--skip-build)
skip_build=true
;;
*)
usage
;;
esac
done

if ! $skip_build; then
"${SCRIPT_DIR}/third_party/ycmd/build.py"
fi

for directory in "${SCRIPT_DIR}"/third_party/*; do
if [ -d "${directory}" ]; then
Expand Down

0 comments on commit d6c9bc1

Please sign in to comment.