Skip to content

Commit

Permalink
Update pipeline template
Browse files Browse the repository at this point in the history
  • Loading branch information
SrinivasanTarget committed Feb 4, 2024
1 parent 44a9e78 commit 40007e6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 21 deletions.
21 changes: 1 addition & 20 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ trigger:
- dashboard-module

jobs:
- job: UnitTest

- job: UnitTest
pool:
vmImage: 'macOS-latest'
steps:
Expand All @@ -12,12 +11,9 @@ jobs:
versionSpec: '20.x'
- template: templates/pipeline.yml
- script: |
npm ci
npm run bundle
npm test
displayName: 'npm test'
- script: |
npm ci
npm run prettier-check
displayName: 'Prettier check'
Expand All @@ -30,10 +26,6 @@ jobs:
inputs:
versionSpec: '20.x'
- template: templates/pipeline.yml
- script: |
npm ci
displayName: 'npm install'
- bash: |
echo "y" | $ANDROID_HOME/tools/bin/sdkmanager --install 'system-images;android-27;google_apis;x86'
displayName: "install Android image"
Expand Down Expand Up @@ -75,7 +67,6 @@ jobs:
versionSpec: '16.x'
- template: templates/pipeline.yml
- script: |
npm ci
npm run test-e2e
displayName: 'E2E Test'
Expand Down Expand Up @@ -106,8 +97,6 @@ jobs:
$ANDROID_HOME/platform-tools/adb devices
displayName: "start Android emulator"
- script: |
npm ci
npm run test-e2e-hubnode
displayName: 'E2E Hub and Node Test'
Expand All @@ -121,8 +110,6 @@ jobs:
versionSpec: '20.x'
- template: templates/pipeline.yml
- script: |
npm ci
npm run test-e2e-browserstack
displayName: 'E2E Test'
Expand All @@ -136,8 +123,6 @@ jobs:
versionSpec: '20.x'
- template: templates/pipeline.yml
- script: |
npm ci
npm run test-e2e-pcloudy
displayName: 'E2E Test'
Expand All @@ -151,8 +136,6 @@ jobs:
versionSpec: '20.x'
- template: templates/pipeline.yml
- script: |
npm ci
export CLOUD_USERNAME=$BS_USERNAME
export CLOUD_KEY=$BS_PASSWORD
export BS_ANDROID_CLOUD_APP=$BS_ANDROID_CLOUD_APP
Expand All @@ -169,7 +152,6 @@ jobs:
versionSpec: '20.x'
- template: templates/pipeline.yml
- script: |
npm ci
export CLOUD_USERNAME=$BS_USERNAME
export CLOUD_KEY=$BS_PASSWORD
export BS_IOS_CLOUD_APP=$BS_IOS_CLOUD_APP
Expand Down Expand Up @@ -203,7 +185,6 @@ jobs:
versionSpec: '20.x'
- template: templates/pipeline.yml
- script: |
npm ci
export CLOUD_USERNAME=$LT_USERNAME
export CLOUD_KEY=$LT_PASSWORD
export LT_CLOUD_APP=$LT_CLOUD_APP
Expand Down
4 changes: 3 additions & 1 deletion templates/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@ steps:
git config --file=.gitmodules $(echo "$url" | sed -E "s/[email protected]:|https:\/\/github.com\//https:\/\/$(PAT_ENV_VARIABLE):$(PAT_ENV_VARIABLE)@github.com\//")
done
git submodule sync
git submodule update --init --recursive
git submodule update --init --recursive
npm ci
npm run bundle

0 comments on commit 40007e6

Please sign in to comment.