Debian Codegraph @

crt/s2n/codebuild/bin/s2n_install_test_dependencies.sh

raw symbols SCIP
1 #!/bin/bash
2 # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 #
4 # Licensed under the Apache License, Version 2.0 (the "License").
5 # You may not use this file except in compliance with the License.
6 # A copy of the License is located at
7 #
8 # http://aws.amazon.com/apache2.0
9 #
10 # or in the "license" file accompanying this file. This file is distributed
11 # on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 # express or implied. See the License for the specific language governing
13 # permissions and limitations under the License.
14 #
15
16
17 set -ex
18
19 source codebuild/bin/s2n_setup_env.sh
20
21 # Install missing test dependencies. If the install directory already exists, cached artifacts will be used
22 # for that dependency.
23
24 if [[ ! -d test-deps ]]; then
25 mkdir test-deps ;
26 fi
27
28 #Install & Run shell check before installing dependencies
29 echo "Installing ShellCheck..."
30 codebuild/bin/install_shellcheck.sh
31 echo "Running ShellCheck..."
32 find ./codebuild -type f -name '*.sh' -exec shellcheck -Cnever -s bash {} \;
33
34 if [[ "$OS_NAME" == "linux" ]]; then
35 codebuild/bin/install_ubuntu_dependencies.sh;
36 fi
37
38 if [[ "$OS_NAME" == "darwin" ]]; then
39 codebuild/bin/install_osx_dependencies.sh;
40 fi
41
42 codebuild/bin/install_default_dependencies.sh
43
44 echo "Success"