install_qa_tools.sh 1.1 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 31 32 33 34
apt-get -y update && \
    apt-get -y install \
    cppcheck \
    shellcheck \
    lcov

S
storypku 已提交
35
## Pylint
36 37
pip3_install pycodestyle
pip3_install pylint
S
storypku 已提交
38

S
storypku 已提交
39 40
apt-get clean && \
    rm -rf /var/lib/apt/lists/*