--- # Copyright 2020 Amazon.com, Inc. or its affiliates. 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. A copy of the License is # located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" file accompanying this file. This file 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. version: 0.2 env: variables: # CODEBUILD_ is a reserved namespace. CB_BIN_DIR: "./codebuild/bin" phases: install: runtime-versions: python: 3.x commands: - echo Entered the install phase... - apt-key list - add-apt-repository ppa:ubuntu-toolchain-r/test -y - apt-get update -o Acquire::CompressionTypes::Order::=gz - apt-get update -y - | if expr "${GCC_VERSION}" : "9" >/dev/null; then apt-get install -y --no-install-recommends g++ g++-9 gcc gcc-9; fi - | if expr "${GCC_VERSION}" : "6" >/dev/null; then apt-get install -y --no-install-recommends g++ g++-6 gcc gcc-6; fi - apt-get install -y --no-install-recommends indent kwstyle lcov libssl-dev clang-3.9 llvm-3.9 m4 make net-tools nettle-bin nettle-dev pkg-config psmisc python3-pip shellcheck sudo tcpdump unzip valgrind zlib1g-dev zlibc build: commands: - printenv - | if [ -d "third-party-src" ]; then cd third-party-src $CB_BIN_DIR/run_sidetrail.sh /sidetrail-install-dir ${CODEBUILD_SRC_DIR}/third-party-src; else $CB_BIN_DIR/run_sidetrail.sh /sidetrail-install-dir ${CODEBUILD_SRC_DIR}; fi post_build: commands: - echo Build completed on `date` - echo Uploading CodeCov.io artifacts - $CB_BIN_DIR/s2n_after_codebuild.sh