Skip to content

Instantly share code, notes, and snippets.

@johndowns
Created February 10, 2018 06:29
Show Gist options
  • Save johndowns/2424ad21fa4443a2434dd4aa7d3525da to your computer and use it in GitHub Desktop.
Save johndowns/2424ad21fa4443a2434dd4aa7d3525da to your computer and use it in GitHub Desktop.
queue:
name: Hosted VS2017
demands: npm
steps:
- task: Npm@1
displayName: Install Packages
inputs:
verbose: 'false'
- task: Npm@1
displayName: Build and Run Tests
inputs:
command: 'custom'
verbose: 'false'
customCommand: 'run test'
- task: PublishTestResults@2
displayName: Publish Test Results
inputs:
testRunner: 'VSTest'
testResultsFiles: 'testresults/testresults*.xml'
searchFolder: '$(Build.SourcesDirectory)'
condition: always()
- task: Npm@1
displayName: Run Release Build
inputs:
command: 'custom'
verbose: 'false'
customCommand: 'run build'
- task: PublishBuildArtifacts@1
displayName: Publish Artifact
inputs:
PathtoPublish: '$(Build.SourcesDirectory)/output/build'
ArtifactName: 'drop'
ArtifactType: 'Container'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment