forked from aws-amplify/amplify-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcloud-e2e.sh
More file actions
22 lines (20 loc) · 959 Bytes
/
Copy pathcloud-e2e.sh
File metadata and controls
22 lines (20 loc) · 959 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash -e
source ./scripts/cloud-cli-utils.sh
export CURR_BRANCH=$(git branch --show-current)
export E2E_ROLE_NAME=CodeBuildE2E
export E2E_PROFILE_NAME=AmplifyCLIE2E
export E2E_PROJECT_NAME=AmplifyCLI-E2E-Testing
function cloudE2ELocal {
echo Running Local E2E Test Suite
triggerProjectBatch $E2E_ACCOUNT_LOCAL $E2E_ROLE_NAME "${E2E_PROFILE_NAME}Local" $E2E_PROJECT_NAME $CURR_BRANCH
}
function cloudE2EBeta {
echo Running Beta E2E Test Suite
triggerProjectBatch $E2E_ACCOUNT_BETA $E2E_ROLE_NAME "${E2E_PROFILE_NAME}Beta" $E2E_PROJECT_NAME $CURR_BRANCH
}
function cloudE2E {
echo Running Prod E2E Test Suite
export TARGET_BRANCH=run-cb-e2e/$USER/$CURR_BRANCH
git push $(git remote -v | grep aws-amplify/amplify-cli | head -n1 | awk '{print $1;}') $CURR_BRANCH:$TARGET_BRANCH --no-verify --force-with-lease
triggerProjectBatch $E2E_ACCOUNT_PROD $E2E_ROLE_NAME "${E2E_PROFILE_NAME}Prod" $E2E_PROJECT_NAME $TARGET_BRANCH
}