зеркало из
1
0
Форкнуть 0

VSTS Nightly basic build definition

This commit is contained in:
Pierre Cauchois 2018-09-02 17:59:02 -07:00 коммит произвёл GitHub
Родитель fe0b798805
Коммит 5da87034b0
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 102 добавлений и 0 удалений

102
vsts/node-nightly-df.yaml Normal file
Просмотреть файл

@ -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()