-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added emit metric function with buildspec for canaries
- Loading branch information
Showing
5 changed files
with
107 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
version: 0.2 | ||
env: | ||
shell: bash | ||
variables: | ||
AMPLIFY_DIR: /root/.npm-global/lib/node_modules/@aws-amplify/cli-internal/bin | ||
AMPLIFY_PATH: /root/.npm-global/lib/node_modules/@aws-amplify/cli-internal/bin/amplify | ||
CI: true | ||
CODEBUILD: true | ||
NODE_OPTIONS: --max-old-space-size=8096 | ||
|
||
phases: | ||
install: | ||
commands: | ||
- sudo apt update | ||
- yes | sudo apt install android-sdk | ||
- export ANDROID_HOME=/usr/lib/android-sdk | ||
- yes | sudo apt install sdkmanager | ||
# Review SDK licenses | ||
- yes | sudo sdkmanager --licenses | ||
|
||
build: | ||
commands: | ||
- source ./shared-scripts.sh && _setupE2ETestsLinux | ||
- codebuild-breakpoint | ||
- source ./shared-scripts.sh && _runE2ETestsLinux | ||
post_build: | ||
commands: | ||
- source ./shared-scripts.sh && _unassumeTestAccountCredentials | ||
- aws sts get-caller-identity | ||
- source ./shared-scripts.sh && _scanArtifacts && _emitCodegenCanaryMetric | ||
|
||
artifacts: | ||
files: | ||
- '**/*' | ||
base-directory: $CODEBUILD_SRC_DIR/packages/amplify-codegen-e2e-tests/amplify-e2e-reports |
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,26 @@ | ||
version: 0.2 | ||
env: | ||
shell: bash | ||
variables: | ||
AMPLIFY_DIR: /root/.npm-global/lib/node_modules/@aws-amplify/cli-internal/bin | ||
AMPLIFY_PATH: /root/.npm-global/lib/node_modules/@aws-amplify/cli-internal/bin/amplify | ||
CI: true | ||
CODEBUILD: true | ||
NODE_OPTIONS: --max-old-space-size=8096 | ||
|
||
phases: | ||
build: | ||
commands: | ||
- source ./shared-scripts.sh && _setupE2ETestsLinux | ||
- codebuild-breakpoint | ||
- source ./shared-scripts.sh && _runE2ETestsLinux | ||
post_build: | ||
commands: | ||
- source ./shared-scripts.sh && _unassumeTestAccountCredentials | ||
- aws sts get-caller-identity | ||
- source ./shared-scripts.sh && _scanArtifacts && _emitCodegenCanaryMetric | ||
|
||
artifacts: | ||
files: | ||
- '**/*' | ||
base-directory: $CODEBUILD_SRC_DIR/packages/amplify-codegen-e2e-tests/amplify-e2e-reports |
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,32 @@ | ||
version: 0.2 | ||
env: | ||
shell: bash | ||
variables: | ||
AMPLIFY_DIR: /root/.npm-global/lib/node_modules/@aws-amplify/cli-internal/bin | ||
AMPLIFY_PATH: /root/.npm-global/lib/node_modules/@aws-amplify/cli-internal/bin/amplify | ||
CI: true | ||
CODEBUILD: true | ||
NODE_OPTIONS: --max-old-space-size=8096 | ||
phases: | ||
build: | ||
commands: | ||
- source ./shared-scripts.sh && _setupE2ETestsLinux | ||
- codebuild-breakpoint | ||
- source ./shared-scripts.sh && _runE2ETestsLinux | ||
- unset AWS_ACCESS_KEY_ID | ||
- unset AWS_SECRET_ACCESS_KEY | ||
- unset AWS_SESSION_TOKEN | ||
- export PATH_TO_MODELS=$CODEBUILD_SRC_DIR/packages/amplify-codegen-e2e-tests/test-apps/swift/amplify/generated | ||
- cd $PATH_TO_MODELS && zip -r models.zip models | ||
- aws s3 cp $PATH_TO_MODELS/models.zip s3://$ARTIFACT_BUCKET_NAME/models.zip | ||
- export MODELS_S3_URL=$(aws s3 presign s3://$ARTIFACT_BUCKET_NAME/models.zip --expires-in 3600) | ||
- cd $CODEBUILD_SRC_DIR && ./.codebuild/scripts/run-ios-modelgen-e2e-test.sh | ||
post_build: | ||
commands: | ||
- aws sts get-caller-identity | ||
- source ./shared-scripts.sh && _scanArtifacts && _emitCodegenCanaryMetric | ||
|
||
artifacts: | ||
files: | ||
- '**/*' | ||
base-directory: $CODEBUILD_SRC_DIR/packages/amplify-codegen-e2e-tests/amplify-e2e-reports |
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