-
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.
- Loading branch information
Showing
17 changed files
with
311 additions
and
84 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,24 @@ | ||
version: 0.2 | ||
env: | ||
shell: powershell.exe | ||
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 | ||
SKIP_SET_NPM_PREFIX: true | ||
phases: | ||
build: | ||
commands: | ||
# commands need to be run in stand-alone bash scripts so that bash can be used on windows | ||
- bash ./.codebuild/scripts/e2e_test_windows.sh | ||
post_build: | ||
commands: | ||
# commands need to be run in stand-alone bash scripts so that bash can be used on windows | ||
- bash ./.codebuild/scripts/post_e2e_test.sh | ||
|
||
artifacts: | ||
files: | ||
- '**/*' | ||
base-directory: $Env: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,8 @@ | ||
#!/bin/bash | ||
|
||
# set exit on error to true | ||
set -e | ||
|
||
source ./shared-scripts.sh && _setupE2ETestsWindows | ||
codebuild-breakpoint | ||
source ./shared-scripts.sh && _runE2ETestsWindows |
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,8 @@ | ||
#!/bin/bash | ||
|
||
# set exit on error to true | ||
set -e | ||
|
||
source ./shared-scripts.sh && _unassumeTestAccountCredentials | ||
aws sts get-caller-identity | ||
source ./shared-scripts.sh && _scanArtifacts |
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
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
10 changes: 10 additions & 0 deletions
10
packages/amplify-codegen-e2e-core/src/utils/getCommandPath.ts
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,10 @@ | ||
import { execSync } from 'child_process'; | ||
/* Get the full absolute path of a command with `which` | ||
* | ||
* Windows executors on CB fail to spawn a command with custom nexpect unless the full path is used. | ||
*/ | ||
export function getCommandPath(command: string): string { | ||
return execSync(`which ${command}`) | ||
.toString() | ||
.trim(); | ||
} |
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,5 @@ | ||
import os from 'os'; | ||
|
||
export function isWindows(): boolean { | ||
return os.platform() === 'win32' | ||
} |
Oops, something went wrong.