Add VSTS build configuration
This commit is contained in:
parent
4651d92eed
commit
7c43ed9cdb
|
|
@ -18,4 +18,7 @@ trim_trailing_whitespace = false
|
|||
# Web Files
|
||||
[*.{htm,html,js,ts,css,scss,less}]
|
||||
insert_final_newline = true
|
||||
indent_size = 2
|
||||
|
||||
[*.yml]
|
||||
indent_size = 2
|
||||
|
|
@ -0,0 +1,31 @@
|
|||
trigger:
|
||||
- master
|
||||
- release/*
|
||||
phases:
|
||||
- phase: Windows
|
||||
queue:
|
||||
name: Hosted VS2017
|
||||
parallel: 2
|
||||
matrix:
|
||||
Debug:
|
||||
BuildConfiguration: Debug
|
||||
Release:
|
||||
BuildConfiguration: Release
|
||||
steps:
|
||||
- checkout: self
|
||||
clean: true
|
||||
- script: .\build.cmd -ci /p:Configuration=$(BuildConfiguration)
|
||||
displayName: Run build.cmd
|
||||
- task: PublishTestResults@2
|
||||
displayName: Publish test results
|
||||
condition: always()
|
||||
inputs:
|
||||
testRunner: vstest
|
||||
testResultsFiles: 'artifacts/logs/**/*.trx'
|
||||
- task: PublishBuildArtifacts@1
|
||||
displayName: Upload artifacts
|
||||
condition: and(succeeded(), eq(variables['system.pullrequest.isfork'], false))
|
||||
inputs:
|
||||
pathtoPublish: artifacts/
|
||||
artifactName: artifacts-$(BuildConfiguration)
|
||||
artifactType: Container
|
||||
Loading…
Reference in New Issue