Merge pull request #888 from EricCornelson/master

Updating CI job to run integration tests in V1
This commit is contained in:
Rob Lourens 2019-07-16 15:22:18 -07:00 коммит произвёл GitHub
Родитель 85deb38b8e 9cd5de695f
Коммит 9965d5fd0e
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 26 добавлений и 23 удалений

Просмотреть файл

@ -8,9 +8,9 @@ jobs:
vmImage: ${{ parameters.vmImage }}
steps:
- task: NodeTool@0
displayName: Use Node 8.x
displayName: Use Node 10.x
inputs:
versionSpec: 8.x
versionSpec: 10.x
checkLatest: true
- ${{ if eq(parameters.name, 'Windows') }}:
@ -54,21 +54,12 @@ jobs:
inputs:
ignoreDirectories: 'testdata'
# - task: Npm@1
# displayName: npm intTest
# inputs:
# command: custom
# verbose: false
# customCommand: 'run intTest'
- ${{ if eq(parameters.name, 'Windows') }}:
- task: Npm@1
condition: false
displayName: npm frameworkTest
inputs:
command: custom
verbose: false
customCommand: 'run frameworkTest'
- task: Npm@1
displayName: Integration tests
inputs:
command: custom
verbose: false
customCommand: 'run allIntTest'
- task: Npm@1
displayName: npm lint
@ -102,10 +93,22 @@ jobs:
- task: securedevelopmentteam.vss-secure-development-tools.build-task-publishsecurityanalysislogs.PublishSecurityAnalysisLogs@2
displayName: 'Publish Security Analysis Logs'
# Publish Test Results
- ${{ if eq(parameters.name, 'Windows') }}:
- task: PublishTestResults@2
inputs:
testResultsFormat: 'JUnit' # Options: JUnit, NUnit, VSTest, xUnit, cTest
testResultsFiles: '**/test-*.xml'
- task: PublishTestResults@2
condition: always()
inputs:
testResultsFormat: 'JUnit' # Options: JUnit, NUnit, VSTest, xUnit, cTest
testResultsFiles: '**/test-*.xml'
publishRunAttachments: true
- task: PublishPipelineArtifact@0
condition: eq('${{ parameters.name }}', 'Windows')
inputs:
artifactName: 'testsOnWindows'
targetPath: 'logs/'
- ${{ if eq(parameters.name, 'MacOS') }}:
- task: PublishPipelineArtifact@0
condition: always()
inputs:
artifactName: 'testsOnMacOS'
targetPath: 'logs/'