-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Improve the iOS CI job (#1000)
- Loading branch information
Showing
3 changed files
with
84 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
# Delete all generated services & their tests | ||
rm -rf Sources/Services/* | ||
rm -rf Tests/Services/* | ||
|
||
# Regenerate the SDK Package.swift without the services and with protocol tests | ||
cd AWSSDKSwiftCLI | ||
swift run AWSSDKSwiftCLI generate-package-manifest --include-protocol-tests .. | ||
cd .. | ||
|
||
# Dump the Package.swift contents to the logs | ||
cat Package.swift | ||
|
||
# Code-generate protocol tests | ||
./gradlew -p codegen/smithy-aws-swift-codegen build | ||
./gradlew -p codegen/protocol-test-codegen build | ||
./gradlew -p codegen/protocol-test-codegen-local build | ||
./gradlew --stop | ||
./scripts/mergeModels.sh codegen/protocol-test-codegen/build/smithyprojections/protocol-test-codegen/aws-restjson/swift-codegen/AWSRestJsonTestSDK/models | ||
|
||
# Run aws-sdk-swift protocol and unit tests as a separate step | ||
# (allows for use of either Xcode or pure Swift toolchains) |