what_works.sh 2.9 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
#!/usr/bin/env bash

###############################################################################
# Copyright 2020 The Apollo Authors. All Rights Reserved.
#
# 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.
###############################################################################
# For development only! Will remove before merging to master!
19 20 21 22
# Testing steps:
# 1. Start container: ./docker/scripts/dev_start.sh
# 2. Login to container: ./docker/scripts/dev_into.sh
# 3. Run this script.
23 24 25 26 27
###############################################################################

cd "$( dirname "${BASH_SOURCE[0]}" )"
cp WORKSPACE.in WORKSPACE

28 29 30
# Fail on first failure.
set -e

31 32 33
# Working parts.
bazel build //cyber/...
bazel test //cyber/...
34 35
bazel build //modules/common/...
bazel test //modules/common/...
36 37 38 39
bazel build //modules/routing/...
bazel test //modules/routing/...
bazel build //modules/storytelling/...
bazel test //modules/storytelling/...
40 41
bazel build //modules/transform/...
bazel test //modules/transform/...
S
storypku 已提交
42
bazel build //modules/v2x/...
43
# TODO(storypku) [re-check why] bazel test //modules/v2x/...
44 45
bazel build //modules/control/...
bazel test //modules/control/...
46 47 48 49
bazel build //modules/canbus/...
bazel test //modules/canbus/...
bazel build //modules/bridge/...
bazel test //modules/bridge/...
50 51
bazel build //modules/monitor/...
bazel test //modules/monitor/...
S
storypku 已提交
52

53 54 55 56 57
bash scripts/install_esdcan_library.sh install
bazel build //modules/drivers/...
bazel test //modules/drivers/...
bash scripts/install_esdcan_library.sh uninstall

58
bazel build //modules/tools/...
59 60
# Note(storypku): bazel test works except some lint errors in cyber_visualizer.
# Will re-check if cyber_visualizer work correctly once it becomes stable
S
storypku 已提交
61 62 63
for entry in $(bazel query //modules/tools/... except //modules/tools/visualizer/...); do
    bazel test $entry
done
64

S
storypku 已提交
65 66
# TODO(storypku): Add grpc support in proto_build_generator.py

67 68 69 70 71 72
# In-progress parts. Feel free to claim by adding your name in TODO and move it
# above when you finish.

# TODO(?): bazel build //modules/contrib/...
# TODO(xiaoxq): bazel build //modules/data/...
# TODO(?): bazel build //modules/dreamview/...
73
# TODO(storypku): bazel build //modules/guardian/...
74
# TODO(?): bazel build //modules/localization/...
75
# TODO(storypku): bazel build //modules/map/...
76
# TODO(?): bazel build //modules/perception/...
77
# TODO(storypku): bazel build //modules/planning/...
78 79
# TODO(?): bazel build //modules/prediction/...
# TODO(?): bazel build //modules/third_party_perception/...