Skip to content

Commit

Permalink
Update YAML formatting (#1445)
Browse files Browse the repository at this point in the history
- Update whitespace to match Prettier formatting
- Add .prettierrc.yml
- Part of Azure/azure-sdk#225
  • Loading branch information
mikeharder authored Mar 5, 2019
1 parent 2d77eaf commit 30339bf
Show file tree
Hide file tree
Showing 3 changed files with 214 additions and 213 deletions.
1 change: 1 addition & 0 deletions .azure-pipelines/.prettierrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
singleQuote: true
90 changes: 45 additions & 45 deletions .azure-pipelines/client.test.live.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,55 +13,55 @@ variables:
NodeVersion: '10.x'

jobs:
- job: 'Test'
- job: 'Test'

pool:
vmImage: '$(OSVmImage)'
pool:
vmImage: '$(OSVmImage)'

timeoutInMinutes: 240
timeoutInMinutes: 240

steps:
- task: NodeTool@0
inputs:
versionSpec: '$(NodeVersion)'
displayName: 'Install Node.js $(NodeVersion)'
steps:
- task: NodeTool@0
inputs:
versionSpec: '$(NodeVersion)'
displayName: 'Install Node.js $(NodeVersion)'

# Rather than running "npm install" in the repo root, reduce build time by only installing the "npm-run-all" package,
# which is the minimum required to run the composite script commands.
- task: Npm@1
inputs:
command: 'custom'
customCommand: 'install npm-run-all'
displayName: 'npm install npm-run-all'
# Rather than running "npm install" in the repo root, reduce build time by only installing the "npm-run-all" package,
# which is the minimum required to run the composite script commands.
- task: Npm@1
inputs:
command: 'custom'
customCommand: 'install npm-run-all'
displayName: 'npm install npm-run-all'

- task: Npm@1
inputs:
command: 'custom'
customCommand: 'run install-client-$(Package)'
displayName: 'npm run install-client-$(Package)'
- task: Npm@1
inputs:
command: 'custom'
customCommand: 'run install-client-$(Package)'
displayName: 'npm run install-client-$(Package)'

# To get realtime logging of test progress in Azure Pipelines, we need to use "script" instead of "Npm@1",
# since "Npm@1" currently buffers output (https://github.com/Microsoft/azure-pipelines-tasks/issues/8171).
- script: npm run live-test-client-$(Package) -- -- --reporter mocha-multi --reporter-options spec=-,mocha-junit-reporter=- $(AdditionalTestArguments)
displayName: 'npm run live-test-client-$(Package)'
env:
# Service Bus
AAD_CLIENT_ID: $(aad-azure-sdk-test-client-id)
AAD_TENANT_ID: $(aad-azure-sdk-test-tenant-id)
AAD_CLIENT_SECRET: $(aad-azure-sdk-test-client-secret)
AZURE_SUBSCRIPTION_ID: $(test-subscription-id)
CLEAN_NAMESPACE: 'true'
RESOURCE_GROUP: $(service-bus-test-resource-group)
SERVICEBUS_CONNECTION_STRING: $(service-bus-test-connection-string)
# Event Hubs
EVENTHUB_CONNECTION_STRING: $(js-event-hubs-test-connection-string)
EVENTHUB_NAME: $(js-event-hubs-test-name)
IOTHUB_CONNECTION_STRING: $(js-event-hubs-test-iothub-connection-string)
STORAGE_CONNECTION_STRING: $(js-event-hubs-test-storage-connection-string)
# To get realtime logging of test progress in Azure Pipelines, we need to use "script" instead of "Npm@1",
# since "Npm@1" currently buffers output (https://github.com/Microsoft/azure-pipelines-tasks/issues/8171).
- script: npm run live-test-client-$(Package) -- -- --reporter mocha-multi --reporter-options spec=-,mocha-junit-reporter=- $(AdditionalTestArguments)
displayName: 'npm run live-test-client-$(Package)'
env:
# Service Bus
AAD_CLIENT_ID: $(aad-azure-sdk-test-client-id)
AAD_TENANT_ID: $(aad-azure-sdk-test-tenant-id)
AAD_CLIENT_SECRET: $(aad-azure-sdk-test-client-secret)
AZURE_SUBSCRIPTION_ID: $(test-subscription-id)
CLEAN_NAMESPACE: 'true'
RESOURCE_GROUP: $(service-bus-test-resource-group)
SERVICEBUS_CONNECTION_STRING: $(service-bus-test-connection-string)
# Event Hubs
EVENTHUB_CONNECTION_STRING: $(js-event-hubs-test-connection-string)
EVENTHUB_NAME: $(js-event-hubs-test-name)
IOTHUB_CONNECTION_STRING: $(js-event-hubs-test-iothub-connection-string)
STORAGE_CONNECTION_STRING: $(js-event-hubs-test-storage-connection-string)

- task: PublishTestResults@2
inputs:
testResultsFiles: '**/test-results.xml'
testRunTitle: '$(OSName) Node $(NodeVersion)'
condition: succeededOrFailed()
displayName: 'Publish test results'
- task: PublishTestResults@2
inputs:
testResultsFiles: '**/test-results.xml'
testRunTitle: '$(OSName) Node $(NodeVersion)'
condition: succeededOrFailed()
displayName: 'Publish test results'
Loading

0 comments on commit 30339bf

Please sign in to comment.