From 69ec4457f82674aabf7309a3c61a1a309093afd4 Mon Sep 17 00:00:00 2001 From: Vera Xia Date: Mon, 8 Apr 2024 13:46:15 -0700 Subject: [PATCH] Update Codebuild to use crt-builder (#249) --- codebuild/linux-integration-tests.sh | 4 ++-- codebuild/linux-integration-tests.yml | 9 ++++++++- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/codebuild/linux-integration-tests.sh b/codebuild/linux-integration-tests.sh index 304adb2fa..33de46c2f 100755 --- a/codebuild/linux-integration-tests.sh +++ b/codebuild/linux-integration-tests.sh @@ -9,5 +9,5 @@ fi env swift -v -swift build -swift test +python3 -c "from urllib.request import urlretrieve; urlretrieve('$BUILDER_HOST/$BUILDER_SOURCE/$BUILDER_VERSION/builder.pyz?run=$CODEBUILD_BUILD_ID', 'builder.pyz')" +python3 builder.pyz build --project $PACKAGE_NAME downstream --cmake-extra=-DUSE_OPENSSL=ON diff --git a/codebuild/linux-integration-tests.yml b/codebuild/linux-integration-tests.yml index 8e1e0a1f7..854af1a3f 100644 --- a/codebuild/linux-integration-tests.yml +++ b/codebuild/linux-integration-tests.yml @@ -1,6 +1,12 @@ -version: 0.1 +version: 0.2 env: shell: bash + variables: + BUILDER_VERSION: v0.9.56 + BUILDER_SOURCE: releases + BUILDER_HOST: https://d19elf31gohf1l.cloudfront.net + PACKAGE_NAME: aws-crt-swift + phases: build: commands: @@ -8,6 +14,7 @@ phases: - aws s3 cp s3://aws-crt-test-stuff/setup_proxy_test_env.sh /tmp/setup_proxy_test_env.sh - chmod a+xr /tmp/setup_proxy_test_env.sh - $CODEBUILD_SRC_DIR/codebuild/linux-integration-tests.sh + post_build: commands: - echo Build completed on `date`