File: lint.sh

package info (click to toggle)
ycmd 0%2B20201028%2Bgit1d415c5%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 4,836 kB
  • sloc: python: 39,750; cpp: 5,991; java: 275; sh: 255; cs: 194; javascript: 150; ansic: 82; makefile: 47; xml: 18; objc: 10
file content (18 lines) | stat: -rwxr-xr-x 772 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Exit immediately if a command returns a non-zero status.
set -e

test -d "$HOME/.pyenv/bin" && export PATH="$HOME/.pyenv/bin:$PATH"
eval "$(pyenv init -)"

pyenv global ${YCM_PYTHON_VERSION}

# It is quite easy to get the steps to configure Python wrong. Verify that the
# version of Python actually in the PATH and used is the version that was
# requested, and fail the build if we broke the setup.
python_version=$(python -c 'import sys; print( "{}.{}.{}".format( *sys.version_info[:3] ) )')
echo "Checking python version (actual ${python_version} vs expected ${YCM_PYTHON_VERSION})"
test ${python_version} == ${YCM_PYTHON_VERSION}
YCM_TESTRUN=1 python build.py --clang-completer --clang-tidy --valgrind
python run_tests.py --valgrind --skip-build --no-flake8

set +e