-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: move build steps into build.yml
- Loading branch information
Showing
2 changed files
with
58 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
steps: | ||
- checkout: self | ||
clean: true | ||
persistCredentials: true | ||
|
||
# Checkout Git-LFS if necessary in the future. | ||
# Note that we need to save Git-LFS bandwidth so currently we disabled it. | ||
# Consider to use a separate Git-LFS storage than the one in GitHub. | ||
- powershell: | | ||
git lfs ls-files | ||
displayName: "List Git-LFS files" | ||
|
||
- task: UseDotNet@2 | ||
displayName: 'Install DotNet SDK' | ||
inputs: | ||
useGlobalJson: true | ||
|
||
- task: DotNetCoreCLI@2 | ||
inputs: | ||
command: custom | ||
custom: tool | ||
arguments: install --tool-path . nbgv | ||
displayName: Install NBGV tool | ||
|
||
- script: nbgv cloud | ||
displayName: Set Version | ||
|
||
- task: Cache@2 | ||
displayName: 'Restore nuget cache' | ||
inputs: | ||
key: 'nuget | "$(Agent.OS)" | **/packages.lock.json,!**/bin/**,!**/obj/**' | ||
restoreKeys: | | ||
nuget | "$(Agent.OS)" | ||
nuget | ||
path: '$(NUGET_PACKAGES)' | ||
cacheHitVar: 'CACHE_RESTORED' | ||
|
||
- task: DotNetCoreCLI@2 | ||
displayName: 'Build projects' | ||
inputs: | ||
command: 'build' | ||
projects: 'dirs.proj' | ||
arguments: '-c $(buildConfiguration)' | ||
|
||
- task: DotNetCoreCLI@2 | ||
displayName: 'Test projects' | ||
inputs: | ||
command: 'test' | ||
projects: 'dirs.proj' | ||
arguments: '--no-restore --no-build -c $(buildConfiguration) --collect "Code coverage"' | ||
publishTestResults: $(isWindows) | ||
|
||
- task: PublishPipelineArtifact@1 | ||
displayName: 'Publish artifacts' | ||
inputs: | ||
targetPath: $(System.DefaultWorkingDirectory)/artifacts | ||
artifactName: OneDotNet-$(osSuffix) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters