Skip to content

Commit

Permalink
PR feedback: use env to find bash, change docker image to amazonlinux…
Browse files Browse the repository at this point in the history
… 2023 to get a more modern CMake.
  • Loading branch information
andrewhop committed Oct 15, 2023
1 parent e72b98b commit 3e7c79b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions tests/ci/cdk/cdk/codebuild/github_ci_integration_omnibus.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ batch:
type: LINUX_CONTAINER
privileged-mode: false
compute-type: BUILD_GENERAL1_SMALL
image: 620771051181.dkr.ecr.us-west-2.amazonaws.com/aws-lc-docker-images-linux-x86:amazonlinux-2_gcc-7x_latest
image: 620771051181.dkr.ecr.us-west-2.amazonaws.com/aws-lc-docker-images-linux-x86:amazonlinux-2023_gcc-11x_latest
variables:
AWS_LC_CI_TARGET: "tests/ci/integration/run_crt_integration.sh"

Expand All @@ -32,7 +32,7 @@ batch:
type: ARM_CONTAINER
privileged-mode: false
compute-type: BUILD_GENERAL1_SMALL
image: 620771051181.dkr.ecr.us-west-2.amazonaws.com/aws-lc-docker-images-linux-aarch:amazonlinux-2_gcc-7x_latest
image: 620771051181.dkr.ecr.us-west-2.amazonaws.com/aws-lc-docker-images-linux-aarch:amazonlinux-2023_gcc-11x_latest
variables:
AWS_LC_CI_TARGET: "tests/ci/integration/run_crt_integration.sh"

Expand Down
9 changes: 5 additions & 4 deletions tests/ci/integration/run_crt_integration.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
#!/bin/bash -exu
#!/usr/bin/env bash
set -exu
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0 OR ISC

source tests/ci/common_posix_setup.sh

# Assumes script is executed from the root of aws-lc directory
SCRATCH_FOLDER=${SYS_ROOT}/"SCRATCH_AWSLC_CRT_TEST"
SCRATCH_FOLDER=${SYS_ROOT}/SCRATCH_AWSLC_CRT_TEST

# Make script execution idempotent.
mkdir -p ${SCRATCH_FOLDER}
Expand All @@ -21,6 +22,6 @@ cp -r ${SRC_ROOT}/* crt/aws-lc/

# Don't pre-build AWS-LC, the CRT will build all of it's dependencies how it wants them built
mkdir build && cd build
cmake -GNinja ../
${CMAKE_COMMAND} -GNinja ../
ninja
ninja test
ninja test

0 comments on commit 3e7c79b

Please sign in to comment.