-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathazure-pipelines.yml
75 lines (66 loc) · 3.27 KB
/
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# resources:
# repositories:
# - repository: e2etest # The name used to reference this repository in the checkout step
# type: github
# endpoint: jaysonmc
# name: jaysonmc/temp-ocio-powerplatform-bdd-tests
# ref: publish-reviews-sarif
trigger:
- test-e2e
jobs:
- job: e2etests
timeoutInMinutes: 120
pool:
vmImage: 'ubuntu-latest'
container:
image: mcr.microsoft.com/playwright:focal
volumes: [e2e-reviews]
steps:
# - checkout: e2etest
- task: Npm@1
inputs:
command: 'install'
displayName: 'installing dependencies'
# using CmdLine for the following instead of Npm because npm buffers the entire output
- task: CmdLine@2
displayName: 'Running login e2e tests'
continueOnError: true
inputs:
script: |
npm run
HAIBUN_TITLE="Login e2e tests" HAIBUN_DEST=e2e HAIBUN_O_OUTREVIEWS_TRACE_STORAGE=StorageFS HAIBUN_O_WEBPLAYWRIGHT_STORAGE=StorageFS HAIBUN_ENVC=${_ENVC} npm run test-pipeline-login
- task: CmdLine@2
displayName: 'Running regression e2e tests'
continueOnError: true
inputs:
script: |
HAIBUN_TITLE="Regression e2e tests" HAIBUN_DEST=regressions HAIBUN_O_OUTREVIEWS_TRACE_STORAGE=StorageFS HAIBUN_O_WEBPLAYWRIGHT_STORAGE=StorageFS HAIBUN_ENVC=${_ENVC} npm run test-pipeline-regressions
# - task: CmdLine@2
# displayName: 'Running positive e2e tests'
# continueOnError: true
# inputs:
# script: |
# HAIBUN_TITLE="Positive e2e tests" HAIBUN_DEST=positive HAIBUN_O_OUTREVIEWS_TRACE_STORAGE=StorageFS HAIBUN_O_WEBPLAYWRIGHT_STORAGE=StorageFS HAIBUN_ENVC=${_ENVC} npm run test-pipeline-positive
- task: CmdLine@2
displayName: 'Generate sarif indexes'
continueOnError: true
inputs:
script: |
HAIBUN_DEST=sarif HAIBUN_O_AZURESTORAGEBLOB_DESTINATION='staticanalysis-sc' HAIBUN_O_SARIF_TRACE_STORAGE=AzureStorageBlob HAIBUN_O_SARIF_INDEX_STORAGE=StorageFS HAIBUN_O_AZURESTORAGEBLOB_ACCOUNT=${_O_AZURESTORAGEBLOB_ACCOUNT} HAIBUN_O_AZURESTORAGEBLOB_KEY=${_O_AZURESTORAGEBLOB_KEY} npm run test-pipeline-index-sarif
- task: CmdLine@2
displayName: 'Generate test result indexes'
continueOnError: true
inputs:
script: |
HAIBUN_O_OUTREVIEWS_TRACE_STORAGE=StorageFS HAIBUN_O_OUTREVIEWS_PUBLISH_STORAGE=AzureStorageBlob HAIBUN_O_OUTREVIEWS_INDEX_STORAGE=StorageFS HAIBUN_O_OUTREVIEWS_REVIEWS_STORAGE=AzureStorageBlob HAIBUN_O_AZURESTORAGEBLOB_DESTINATION=e2e-reviews-sc HAIBUN_O_AZURESTORAGEBLOB_ACCOUNT=${_O_AZURESTORAGEBLOB_ACCOUNT} HAIBUN_O_AZURESTORAGEBLOB_KEY=${_O_AZURESTORAGEBLOB_KEY} HAIBUN_O_OUTREVIEWS_URI_ARGS=${_O_OUTREVIEWS_URI_ARGS} npm run test-pipeline-indexes
# - job: publish_e2e_artifacts
# dependsOn: e2etests
# steps:
# - publish: '$(System.DefaultWorkingDirectory)'
# artifact: e2e_capture
# displayName: Publish e2e artifact
# - job: exit_if_failed
# dependsOn: publish_e2e_artifacts
# condition: eq(dependencies.e2etests.result,'Succeeded')
# steps:
# - script: echo e2e tests passed, continuing.