Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: separate codebuild & cci differences #12751

Merged
merged 1 commit into from
Jun 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion .circleci/local_publish_helpers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -267,8 +267,19 @@ function setAwsAccountCredentials {
useChildAccountCredentials
fi
}

function runE2eTest {
FAILED_TEST_REGEX_FILE="./amplify-e2e-reports/amplify-e2e-failed-test.txt"

if [ -f $FAILED_TEST_REGEX_FILE ]; then
# read the content of failed tests
failedTests=$(<$FAILED_TEST_REGEX_FILE)
yarn e2e --forceExit --no-cache --maxWorkers=4 $TEST_SUITE -t "$failedTests"
else
yarn e2e --forceExit --no-cache --maxWorkers=4 $TEST_SUITE
fi
}

function runE2eTestCb {
_setupCoverage
FAILED_TEST_REGEX_FILE="./amplify-e2e-reports/amplify-e2e-failed-test.txt"

Expand Down
2 changes: 1 addition & 1 deletion codebuild_specs/scripts-windows/run-e2e-windows.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ cd packages/amplify-e2e-tests

_loadTestAccountCredentials

retry runE2eTest
retry runE2eTestCb
2 changes: 1 addition & 1 deletion shared-scripts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ function _runE2ETestsLinux {
amplify version
cd packages/amplify-e2e-tests
_loadTestAccountCredentials
retry runE2eTest
retry runE2eTestCb
}
function _unassumeTestAccountCredentials {
echo "Unassume Role"
Expand Down