Skip to content

Commit 69ec445

Browse files
authored
Update Codebuild to use crt-builder (#249)
1 parent f488005 commit 69ec445

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

codebuild/linux-integration-tests.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ fi
99
env
1010

1111
swift -v
12-
swift build
13-
swift test
12+
python3 -c "from urllib.request import urlretrieve; urlretrieve('$BUILDER_HOST/$BUILDER_SOURCE/$BUILDER_VERSION/builder.pyz?run=$CODEBUILD_BUILD_ID', 'builder.pyz')"
13+
python3 builder.pyz build --project $PACKAGE_NAME downstream --cmake-extra=-DUSE_OPENSSL=ON

codebuild/linux-integration-tests.yml

+8-1
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,20 @@
1-
version: 0.1
1+
version: 0.2
22
env:
33
shell: bash
4+
variables:
5+
BUILDER_VERSION: v0.9.56
6+
BUILDER_SOURCE: releases
7+
BUILDER_HOST: https://d19elf31gohf1l.cloudfront.net
8+
PACKAGE_NAME: aws-crt-swift
9+
410
phases:
511
build:
612
commands:
713
- echo Build started on `date`
814
- aws s3 cp s3://aws-crt-test-stuff/setup_proxy_test_env.sh /tmp/setup_proxy_test_env.sh
915
- chmod a+xr /tmp/setup_proxy_test_env.sh
1016
- $CODEBUILD_SRC_DIR/codebuild/linux-integration-tests.sh
17+
1118
post_build:
1219
commands:
1320
- echo Build completed on `date`

0 commit comments

Comments
 (0)