Merge pull request #1374 from puremourning/test-suite
Test suite: allow skipping of build step
This commit is contained in:
commit
d05cf1d7ff
21
run_tests.sh
21
run_tests.sh
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user