install_qa_tools.sh 1.3 KB
Newer Older
S
storypku 已提交
1
#!/usr/bin/env bash
2 3

###############################################################################
S
storypku 已提交
4
# Copyright 2020 The Apollo Authors. All Rights Reserved.
5 6 7 8 9 10 11 12 13 14 15 16 17
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
###############################################################################
S
storypku 已提交
18 19 20 21 22 23

# Fail on first error.
set -e

cd "$(dirname "${BASH_SOURCE[0]}")"

S
storypku 已提交
24 25
. /tmp/installers/installer_base.sh

26 27
## NOTE:
## buildifier/buildozer was moved into install_bazel.sh.
S
storypku 已提交
28

S
storypku 已提交
29 30
apt-get -y update && \
    apt-get -y install \
S
storypku 已提交
31 32 33 34 35
    cppcheck    \
    shellcheck  \
    lcov        \
    valgrind    \
    libgoogle-perftools4  # gperftools
S
storypku 已提交
36

S
storypku 已提交
37
## Pylint
38
pip3_install pycodestyle
S
storypku 已提交
39
pip3_install pyflakes
40
pip3_install flake8
S
storypku 已提交
41
# pip3_install pylint
S
storypku 已提交
42

43
# Clean up cache to reduce layer size.
S
storypku 已提交
44 45
apt-get clean && \
    rm -rf /var/lib/apt/lists/*