зеркало из https://github.com/microsoft/iqsharp.git
56 строки
1.3 KiB
YAML
56 строки
1.3 KiB
YAML
##
|
|
# Build and test IQ#.
|
|
##
|
|
|
|
steps:
|
|
|
|
##
|
|
# Pre-reqs
|
|
##
|
|
- template: steps-frameworks.yml
|
|
|
|
- pwsh: .\bootstrap.ps1
|
|
displayName: "Bootstrap"
|
|
workingDirectory: '$(System.DefaultWorkingDirectory)'
|
|
|
|
- task: NuGetAuthenticate@1
|
|
|
|
##
|
|
# Build, test & pack
|
|
##
|
|
- pwsh: .\build.ps1
|
|
displayName: "Building IQ#"
|
|
workingDirectory: '$(System.DefaultWorkingDirectory)/build'
|
|
|
|
- pwsh: .\test.ps1
|
|
displayName: "Testing IQ#"
|
|
workingDirectory: '$(System.DefaultWorkingDirectory)/build'
|
|
condition: and(succeeded(), ne(variables['Skip.Tests'], 'true'))
|
|
|
|
- pwsh: .\pack.ps1
|
|
displayName: "Packing IQ#"
|
|
workingDirectory: '$(System.DefaultWorkingDirectory)/build'
|
|
|
|
- pwsh: .\manifest.ps1
|
|
displayName: "List built packages & assemblies"
|
|
workingDirectory: '$(System.DefaultWorkingDirectory)/build'
|
|
condition: succeededOrFailed()
|
|
|
|
##
|
|
# Publish tests results and build artifacts.
|
|
##
|
|
- task: PublishTestResults@2
|
|
displayName: 'Publish IQ# tests results'
|
|
condition: succeededOrFailed()
|
|
inputs:
|
|
testResultsFormat: VSTest
|
|
testResultsFiles: '$(System.DefaultWorkingDirectory)/**/*.trx'
|
|
testRunTitle: 'IQ# tests'
|
|
|
|
- task: PublishBuildArtifacts@1
|
|
displayName: 'Publish Artifact: iqsharp'
|
|
condition: succeededOrFailed()
|
|
inputs:
|
|
PathtoPublish: '$(Build.ArtifactStagingDirectory)'
|
|
artifactName: iqsharp
|