forked from awsdocs/aws-doc-sdk-examples
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrun_all.sh
More file actions
executable file
·38 lines (31 loc) · 700 Bytes
/
run_all.sh
File metadata and controls
executable file
·38 lines (31 loc) · 700 Bytes
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
35
36
37
38
#!/usr/bin/env bash
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
cd "$(dirname "$0")" || exit
DIRS=(
cross_service
examples
lambda
webassembly
)
ACTIONS=(
"fmt --check --all"
"clippy --all"
"test --all"
)
if [ "$1" == "--clean" ] ; then
rm ./**/Cargo.lock
ACTIONS=("clean" "${ACTIONS[@]}")
fi
export RUSTFLAGS="-D warnings" ;
export APP_ENVIRONMENT="test"
FAIL=()
for f in "${DIRS[@]}" ; do
# we _do_ want to break out the flags in $a
# shellcheck disable=SC2086
for a in "${ACTIONS[@]}" ; do
cargo $a --manifest-path "$f/Cargo.toml" || FAIL+=("${a}:$f")
done
done
echo "${FAIL[@]}"
exit ${#FAIL[@]}