forked from Azure/azure-functions-nodejs-worker
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathe2e-nightly-site-azure-pipelines.yml
45 lines (44 loc) · 1.29 KB
/
e2e-nightly-site-azure-pipelines.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
variables: {
WORKER_VERSION: '1.2.0',
NODE_LOWER_LTS: '8.x',
NODE_HIGHER_LTS: '10.x'
}
name: $(WORKER_VERSION)-$(Date:yyyyMMdd)$(Rev:.r)
jobs:
- job: E2ETests
strategy:
maxParallel: 1
matrix:
NODE10:
NODE_VERSION: $(NODE_HIGHER_LTS)
pool:
vmImage: 'vs2017-win2016'
steps:
- task: NodeTool@0
inputs:
versionSpec: $(NODE_VERSION)
displayName: 'Install Node.js for test'
- script: npm install
displayName: 'npm install'
- script: npm run build
displayName: 'npm run build'
- powershell: |
.\run-e2e-tests.ps1
env:
AzureWebJobsStorage: $(AzureWebJobsStorage)
AzureWebJobsEventHubSender: $(AzureWebJobsEventHubSender)
AzureWebJobsCosmosDBConnectionString: $(AzureWebJobsCosmosDBConnectionString)
FUNCTIONS_WORKER_RUNTIME: 'node'
FunctionAppUrl: $(FunctionAppUrl)
languageWorkers:node:workerDirectory: $(System.DefaultWorkingDirectory)
continueOnError: true
- task: CopyFiles@2
inputs:
SourceFolder: '$(System.DefaultWorkingDirectory)/test/testResults'
Contents: '*.trx'
TargetFolder: '$(Build.ArtifactStagingDirectory)'
- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: '$(Build.ArtifactStagingDirectory)'
ArtifactName: 'testResults'
publishLocation: 'Container'