blob: 65f8853658049731a79a4c3c775edb51d9e9b220 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
#!/bin/bash
set -ev
which shellcheck > /dev/null && shellcheck "$0" # Run shellcheck on this if available
shopt -s expand_aliases
# Disabled rules in Python 2 only
# superfluous-parens: needed for print statements
# too-many-locals: variable counting differs from pylint3
alias python2_pylint='python2 -m pylint --disable=superfluous-parens,too-many-locals'
alias python3_pylint='python3 -m pylint'
echo "travis_fold:start:pylint_configure"
python2_pylint configure.py
python3_pylint configure.py
echo "travis_fold:end:pylint_configure"
echo "travis_fold:start:pylint_install"
python2_pylint src/scripts/install.py
python3_pylint src/scripts/install.py
echo "travis_fold:end:pylint_configure"
echo "travis_fold:start:pylint_python_unittests"
python3_pylint src/scripts/python_unittests.py
echo "travis_fold:end:pylint_python_unittests"
echo "travis_fold:start:pylint_python_unittests_unix"
python3_pylint src/scripts/python_unittests_unix.py
echo "travis_fold:end:pylint_python_unittests_unix"
echo "travis_fold:start:pylint_botanpy"
python2_pylint src/python/botan2.py
python3_pylint src/python/botan2.py
echo "travis_fold:end:pylint_botanpy"
|