VSTS Nightly basic build definition
This commit is contained in:
Родитель
fe0b798805
Коммит
5da87034b0
|
@ -0,0 +1,102 @@
|
|||
resources:
|
||||
- repo: self
|
||||
clean: true
|
||||
phases:
|
||||
- phase: Phase_2
|
||||
displayName: Ubuntu 1604 - Node 6
|
||||
|
||||
condition: succeededOrFailed()
|
||||
queue:
|
||||
name: Hosted Ubuntu 1604
|
||||
steps:
|
||||
- task: NodeTool@0
|
||||
displayName: 'Use Node 6.x'
|
||||
|
||||
|
||||
- script: |
|
||||
npm install --global node-gyp
|
||||
npm install --global lerna
|
||||
displayName: 'Install Dependencies'
|
||||
|
||||
- script: |
|
||||
lerna bootstrap
|
||||
lerna run build
|
||||
displayName: 'Bootstrap & Build'
|
||||
|
||||
- script: 'lerna run ci'
|
||||
displayName: 'Unit & Integration Tests'
|
||||
env:
|
||||
IOTHUB_CONNECTION_STRING: $(NODE-LINUX-DF-IOTHUB-CONNECTION-STRING)
|
||||
|
||||
- script: 'lerna run e2e'
|
||||
displayName: 'E2E Tests'
|
||||
env:
|
||||
IOTHUB_CONNECTION_STRING: $(NODE-LINUX-DF-IOTHUB-CONNECTION-STRING)
|
||||
STORAGE_CONNECTION_STRING: $(NODE-LINUX-DF-STORAGE-CONNECTION-STRING)
|
||||
IOTHUB_CA_ROOT_CERT: $(IOTHUB-CA-ROOT-CERT)
|
||||
IOTHUB_CA_ROOT_CERT_KEY: $(IOTHUB-CA-ROOT-CERT-KEY)
|
||||
IOT_PROVISIONING_SERVICE_CONNECTION_STRING: $(NODE-LINUX-DF-IOT-PROVISIONING-SERVICE-CONNECTION-STRING)
|
||||
IOT_PROVISIONING_DEVICE_IDSCOPE: $(NODE-LINUX-DF-IOT-PROVISIONING-DEVICE-IDSCOPE)
|
||||
IOT_PROVISIONING_DEVICE_ENDPOINT: $(NODE-WINDOWS-DF-IOT-PROVISIONING-DEVICE-ENDPOINT)
|
||||
IOT_PROVISIONING_ROOT_CERT: $(NODE-WINDOWS-DF-IOT-PROVISIONING-CERT)
|
||||
IOT_PROVISIONING_ROOT_CERT_KEY: $(NODE-WINDOWS-DF-IOT-PROVISIONING-ROOT-CERT-KEY)
|
||||
|
||||
- task: PublishTestResults@1
|
||||
displayName: 'Publish Test Results | Mocha'
|
||||
inputs:
|
||||
testResultsFiles: 'e2etests/test-results.*.xml'
|
||||
mergeTestResults: true
|
||||
testRunTitle: 'E2E Tests - Linux'
|
||||
condition: succeededOrFailed()
|
||||
|
||||
|
||||
- phase: Phase_1
|
||||
displayName: Windows Build - Node 8
|
||||
|
||||
condition: succeededOrFailed()
|
||||
queue:
|
||||
name: Hosted
|
||||
steps:
|
||||
- task: NodeTool@0
|
||||
displayName: 'Use Node 8.x'
|
||||
inputs:
|
||||
versionSpec: 8.x
|
||||
|
||||
|
||||
- powershell: |
|
||||
runas.exe /savecred /user:administrator
|
||||
npm install --global node-gyp
|
||||
npm install --global lerna
|
||||
displayName: 'Install Dependencies'
|
||||
|
||||
- script: |
|
||||
call lerna bootstrap
|
||||
call lerna run build
|
||||
displayName: 'Bootstrap & Build'
|
||||
|
||||
- script: 'call lerna run ci'
|
||||
displayName: 'Unit & Integration Tests'
|
||||
env:
|
||||
IOTHUB_CONNECTION_STRING: $(NODE-WINDOWS-DF-IOTHUB-CONNECTION-STRING)
|
||||
|
||||
- script: 'lerna run e2e'
|
||||
displayName: 'E2E Tests'
|
||||
env:
|
||||
IOTHUB_CONNECTION_STRING: $(NODE-WINDOWS-DF-IOTHUB-CONNECTION-STRING)
|
||||
STORAGE_CONNECTION_STRING: $(NODE-WINDOWS-DF-STORAGE-CONNECTION-STRING)
|
||||
IOTHUB_CA_ROOT_CERT: $(IOTHUB-CA-ROOT-CERT)
|
||||
IOTHUB_CA_ROOT_CERT_KEY: $(IOTHUB-CA-ROOT-CERT-KEY)
|
||||
IOT_PROVISIONING_SERVICE_CONNECTION_STRING: $(NODE-WINDOWS-DF-IOT-PROVISIONING-SERVICE-CONNECTION-STRING)
|
||||
IOT_PROVISIONING_DEVICE_IDSCOPE: $(NODE-WINDOWS-DF-IOT-PROVISIONING-DEVICE-IDSCOPE)
|
||||
IOT_PROVISIONING_DEVICE_ENDPOINT: $(NODE-WINDOWS-DF-IOT-PROVISIONING-DEVICE-ENDPOINT)
|
||||
IOT_PROVISIONING_ROOT_CERT: $(NODE-WINDOWS-DF-IOT-PROVISIONING-CERT)
|
||||
IOT_PROVISIONING_ROOT_CERT_KEY: $(NODE-WINDOWS-DF-IOT-PROVISIONING-ROOT-CERT-KEY)
|
||||
|
||||
- task: PublishTestResults@1
|
||||
displayName: 'Publish Test Results | Mocha'
|
||||
inputs:
|
||||
testResultsFiles: 'e2etests/test-results.*.xml'
|
||||
mergeTestResults: true
|
||||
testRunTitle: 'E2E Tests - Windows'
|
||||
condition: succeededOrFailed()
|
||||
|
Загрузка…
Ссылка в новой задаче