Skip to content

Commit

Permalink
azure submodule
Browse files Browse the repository at this point in the history
  • Loading branch information
saikrishna321 committed Feb 4, 2024
1 parent 4c0cd23 commit 5465347
Showing 1 changed file with 172 additions and 165 deletions.
337 changes: 172 additions & 165 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,23 @@
trigger:
- main
- dashboard-module

jobs:
- job: UnitTest
env:
CI_PAT: $(PAT_ENV_VARIABLE)
pool:
vmImage: 'macOS-latest'

steps:
- task: [email protected]
inputs:
versionSpec: '16.x'

versionSpec: '20.x'
- script: |
git config --file .gitmodules --get-regexp url | while read url; do
git config --file=.gitmodules $(echo "$url" | sed -E "s/[email protected]:|https:\/\/github.com\//https:\/\/${{ secrets.CI_PAT }}:${{ secrets.CI_PAT }}@github.com\//")
done
git submodule sync
git submodule update --init --recursive
- script: |
npm ci
npm test
Expand All @@ -20,191 +27,191 @@ jobs:
npm run prettier-check
displayName: 'Prettier check'
- job: ANDROID
pool:
vmImage: 'macOS-latest'

steps:
- task: [email protected]
inputs:
versionSpec: '16.x'

- script: |
npm ci
displayName: 'npm install'
# - job: ANDROID
# pool:
# vmImage: 'macOS-latest'

- bash: |
echo "y" | $ANDROID_HOME/tools/bin/sdkmanager --install 'system-images;android-27;google_apis;x86'
displayName: "install Android image"
- script: |
$ANDROID_HOME/emulator/emulator -list-avds
echo '---'
echo "no" | $ANDROID_HOME/tools/bin/avdmanager create avd -n test_android_emulator -k 'system-images;android-27;google_apis;x86' --force
echo '---'
echo '---'
echo "no" | $ANDROID_HOME/tools/bin/avdmanager create avd -n test_android_emulator1 -k 'system-images;android-27;google_apis;x86' --force
echo '---'
$ANDROID_HOME/emulator/emulator -list-avds
displayName: "create AVD"
- script: |
$ANDROID_HOME/platform-tools/adb devices
echo '---'
nohup $ANDROID_HOME/emulator/emulator -avd test_android_emulator -verbose -no-boot-anim -no-audio -no-window -gpu swiftshader_indirect > /dev/null 2>&1 & $ANDROID_HOME/platform-tools/adb wait-for-any-device shell 'while [[ -z $(getprop sys.boot_completed | tr -d '\r') ]]; do sleep 1; done; input keyevent 82'
echo '---'
echo '---'
nohup $ANDROID_HOME/emulator/emulator -avd test_android_emulator1 -verbose -no-boot-anim -no-audio -no-window -gpu swiftshader_indirect > /dev/null 2>&1 & $ANDROID_HOME/platform-tools/adb wait-for-any-device shell 'while [[ -z $(getprop sys.boot_completed | tr -d '\r') ]]; do sleep 1; done; input keyevent 82'
echo '---'
$ANDROID_HOME/platform-tools/adb devices
$ANDROID_HOME/platform-tools/adb kill-server
echo '----devices after kill server----'
$ANDROID_HOME/platform-tools/adb devices
displayName: "start Android emulator"
- script: |
npm run build --if-present
npm run integration-android
displayName: "Android Integration Test"
- job: E2EPluginTest
pool:
vmImage: 'macOS-latest'
# steps:
# - task: [email protected]
# inputs:
# versionSpec: '20.x'

steps:
- task: [email protected]
inputs:
versionSpec: '16.x'
# - script: |
# npm ci
# displayName: 'npm install'

- script: |
npm ci
npm run test-e2e
displayName: 'E2E Test'
# - bash: |
# echo "y" | $ANDROID_HOME/tools/bin/sdkmanager --install 'system-images;android-27;google_apis;x86'
# displayName: "install Android image"
# - script: |
# $ANDROID_HOME/emulator/emulator -list-avds
# echo '---'
# echo "no" | $ANDROID_HOME/tools/bin/avdmanager create avd -n test_android_emulator -k 'system-images;android-27;google_apis;x86' --force
# echo '---'
# echo '---'
# echo "no" | $ANDROID_HOME/tools/bin/avdmanager create avd -n test_android_emulator1 -k 'system-images;android-27;google_apis;x86' --force
# echo '---'
# $ANDROID_HOME/emulator/emulator -list-avds
# displayName: "create AVD"
# - script: |
# $ANDROID_HOME/platform-tools/adb devices
# echo '---'
# nohup $ANDROID_HOME/emulator/emulator -avd test_android_emulator -verbose -no-boot-anim -no-audio -no-window -gpu swiftshader_indirect > /dev/null 2>&1 & $ANDROID_HOME/platform-tools/adb wait-for-any-device shell 'while [[ -z $(getprop sys.boot_completed | tr -d '\r') ]]; do sleep 1; done; input keyevent 82'
# echo '---'
# echo '---'
# nohup $ANDROID_HOME/emulator/emulator -avd test_android_emulator1 -verbose -no-boot-anim -no-audio -no-window -gpu swiftshader_indirect > /dev/null 2>&1 & $ANDROID_HOME/platform-tools/adb wait-for-any-device shell 'while [[ -z $(getprop sys.boot_completed | tr -d '\r') ]]; do sleep 1; done; input keyevent 82'
# echo '---'
# $ANDROID_HOME/platform-tools/adb devices
# $ANDROID_HOME/platform-tools/adb kill-server
# echo '----devices after kill server----'
# $ANDROID_HOME/platform-tools/adb devices
# displayName: "start Android emulator"
# - script: |
# npm run build --if-present
# npm run integration-android
# displayName: "Android Integration Test"

- job: E2EHubAndNodeTest
pool:
vmImage: 'macOS-latest'
# - job: E2EPluginTest
# pool:
# vmImage: 'macOS-latest'

steps:
- task: [email protected]
inputs:
versionSpec: '16.x'
# steps:
# - task: [email protected]
# inputs:
# versionSpec: '16.x'

- bash: |
echo "y" | $ANDROID_HOME/tools/bin/sdkmanager --install 'system-images;android-27;google_apis;x86'
displayName: "install Android image"
- script: |
$ANDROID_HOME/emulator/emulator -list-avds
echo '---'
echo "no" | $ANDROID_HOME/tools/bin/avdmanager create avd -n test_android_emulator -k 'system-images;android-27;google_apis;x86' --force
echo '---'
$ANDROID_HOME/emulator/emulator -list-avds
displayName: "create AVD"
- script: |
$ANDROID_HOME/platform-tools/adb devices
echo '---'
nohup $ANDROID_HOME/emulator/emulator -avd test_android_emulator -no-snapshot > /dev/null 2>&1 & $ANDROID_HOME/platform-tools/adb wait-for-device shell 'while [[ -z $(getprop sys.boot_completed | tr -d '\r') ]]; do sleep 1; done; input keyevent 82'
echo '---'
$ANDROID_HOME/platform-tools/adb devices
displayName: "start Android emulator"
- script: |
npm ci
# - script: |
# npm ci
# npm run test-e2e
# displayName: 'E2E Test'

npm run test-e2e-hubnode
displayName: 'E2E Hub and Node Test'
# - job: E2EHubAndNodeTest
# pool:
# vmImage: 'macOS-latest'

- job: E2EPluginBrowserStackTest
pool:
vmImage: 'macOS-latest'

steps:
- task: [email protected]
inputs:
versionSpec: '16.x'
# steps:
# - task: [email protected]
# inputs:
# versionSpec: '20.x'

- script: |
npm ci
# - bash: |
# echo "y" | $ANDROID_HOME/tools/bin/sdkmanager --install 'system-images;android-27;google_apis;x86'
# displayName: "install Android image"
# - script: |
# $ANDROID_HOME/emulator/emulator -list-avds
# echo '---'
# echo "no" | $ANDROID_HOME/tools/bin/avdmanager create avd -n test_android_emulator -k 'system-images;android-27;google_apis;x86' --force
# echo '---'
# $ANDROID_HOME/emulator/emulator -list-avds
# displayName: "create AVD"
# - script: |
# $ANDROID_HOME/platform-tools/adb devices
# echo '---'
# nohup $ANDROID_HOME/emulator/emulator -avd test_android_emulator -no-snapshot > /dev/null 2>&1 & $ANDROID_HOME/platform-tools/adb wait-for-device shell 'while [[ -z $(getprop sys.boot_completed | tr -d '\r') ]]; do sleep 1; done; input keyevent 82'
# echo '---'
# $ANDROID_HOME/platform-tools/adb devices
# displayName: "start Android emulator"
# - script: |
# npm ci

npm run test-e2e-browserstack
displayName: 'E2E Test'
# npm run test-e2e-hubnode
# displayName: 'E2E Hub and Node Test'

- job: E2EPluginPCloudy
pool:
vmImage: 'macOS-latest'
# - job: E2EPluginBrowserStackTest
# pool:
# vmImage: 'macOS-latest'

steps:
- task: [email protected]
inputs:
versionSpec: '16.x'
# steps:
# - task: [email protected]
# inputs:
# versionSpec: '20.x'

- script: |
npm ci
# - script: |
# npm ci

npm run test-e2e-pcloudy
displayName: 'E2E Test'
# npm run test-e2e-browserstack
# displayName: 'E2E Test'

- job: BrowserStack_mac
pool:
vmImage: 'macOS-latest'
# - job: E2EPluginPCloudy
# pool:
# vmImage: 'macOS-latest'

steps:
- task: [email protected]
inputs:
versionSpec: '16.x'
# steps:
# - task: [email protected]
# inputs:
# versionSpec: '20.x'

- script: |
npm ci
# - script: |
# npm ci

export CLOUD_USERNAME=$BS_USERNAME
export CLOUD_KEY=$BS_PASSWORD
export BS_ANDROID_CLOUD_APP=$BS_ANDROID_CLOUD_APP
npm run test-parallel-bs
displayName: 'E2E Test'
# npm run test-e2e-pcloudy
# displayName: 'E2E Test'

- job: BrowserStack_Linux_IOS
pool:
vmImage: 'ubuntu-latest'
# - job: BrowserStack_mac
# pool:
# vmImage: 'macOS-latest'

steps:
- task: [email protected]
inputs:
versionSpec: '16.x'

- script: |
npm ci
export CLOUD_USERNAME=$BS_USERNAME
export CLOUD_KEY=$BS_PASSWORD
export BS_IOS_CLOUD_APP=$BS_IOS_CLOUD_APP
npm run test-parallel-ios-bs
displayName: 'E2E Test BS Linux'
# - job: Sauce
# pool:
# vmImage: 'macOS-latest'
#
# steps:
# steps:
# - task: [email protected]
# inputs:
# versionSpec: '16.x'
#
# versionSpec: '20.x'

# - script: |
# npm ci
# export APPIUM_HOME=/tmp/device-farm
# ./node_modules/.bin/appium plugin install --source=local .
# nohup ./node_modules/.bin/appium server -ka 800 --use-plugins=device-farm -pa /wd/hub --config=./serverConfig/sauce-config.json &
# npm run test-parallel-sauce
# displayName: 'E2E Test'

- job: LambdaTest
pool:
vmImage: 'macOS-latest'
# export CLOUD_USERNAME=$BS_USERNAME
# export CLOUD_KEY=$BS_PASSWORD
# export BS_ANDROID_CLOUD_APP=$BS_ANDROID_CLOUD_APP
# npm run test-parallel-bs
# displayName: 'E2E Test'

steps:
- task: [email protected]
inputs:
versionSpec: '16.x'

- script: |
npm ci
export CLOUD_USERNAME=$LT_USERNAME
export CLOUD_KEY=$LT_PASSWORD
export LT_CLOUD_APP=$LT_CLOUD_APP
npm run test-parallel-lt
displayName: 'E2E Test'
# - job: BrowserStack_Linux_IOS
# pool:
# vmImage: 'ubuntu-latest'

# steps:
# - task: [email protected]
# inputs:
# versionSpec: '20.x'

# - script: |
# npm ci
# export CLOUD_USERNAME=$BS_USERNAME
# export CLOUD_KEY=$BS_PASSWORD
# export BS_IOS_CLOUD_APP=$BS_IOS_CLOUD_APP
# npm run test-parallel-ios-bs
# displayName: 'E2E Test BS Linux'

# # - job: Sauce
# # pool:
# # vmImage: 'macOS-latest'
# #
# # steps:
# # - task: [email protected]
# # inputs:
# # versionSpec: '16.x'
# #
# # - script: |
# # npm ci
# # export APPIUM_HOME=/tmp/device-farm
# # ./node_modules/.bin/appium plugin install --source=local .
# # nohup ./node_modules/.bin/appium server -ka 800 --use-plugins=device-farm -pa /wd/hub --config=./serverConfig/sauce-config.json &
# # npm run test-parallel-sauce
# # displayName: 'E2E Test'

# - job: LambdaTest
# pool:
# vmImage: 'macOS-latest'

# steps:
# - task: [email protected]
# inputs:
# versionSpec: '20.x'

# - script: |
# npm ci
# export CLOUD_USERNAME=$LT_USERNAME
# export CLOUD_KEY=$LT_PASSWORD
# export LT_CLOUD_APP=$LT_CLOUD_APP
# npm run test-parallel-lt
# displayName: 'E2E Test'

0 comments on commit 5465347

Please sign in to comment.