-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Azure Pipeline for Windows CI #1853
Merged
Merged
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
db06a36
Update Clarius.TransformOnBuild to work with VS2017
lokitoth 5732a7a
Add explicit project dependencies to the solution
lokitoth 1264330
Enable finding VS2017 MSBuild automatically
lokitoth 8b7f95a
Update NuGet.exe to support SemVer
lokitoth da4e284
Fix init.cmd to also find vstest.console when it is not provided
lokitoth 1eb6cb3
Enable a way to suppres c smoke test
lokitoth 7a63b58
Simplify vw_core.vcxproj
lokitoth f6f7411
Simplify libvw.vcxproj
lokitoth 9e99ba2
Fix c_test.vcxproj dependency
lokitoth 2972990
Disable node reuse to avoid keeping stale MSBuild.exe processes aroun…
lokitoth c5441e0
Fix CodeAnalysis rule files location
lokitoth 4e41c4e
Unify C# outputs
lokitoth fbda596
Fix NuGet pack binary search paths
lokitoth 83c5e39
Make package.cmd more robust
lokitoth ae507d9
Remove in-build NuGet restore
lokitoth 451776c
Remove DebugLeakCheck configuration
lokitoth ee107b2
Simplify cluster.vcxproj and unify output paths
lokitoth c493cbc
Normalize usage of $(SolutionDir)
lokitoth 4052452
Simplify cs_unittest.csproj and unify outputs
lokitoth f96eed9
Switch to using exit codes to perform test validation
lokitoth 0d9559d
Create Azure Pipeline configuration for Windows CI
lokitoth ecd2720
Bring set closer to check for envvars
lokitoth File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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,55 @@ | ||
resources: | ||
- repo: self | ||
|
||
pool: | ||
name: Hosted VS2017 | ||
demands: Cmd | ||
|
||
steps: | ||
- task: VisualStudioTestPlatformInstaller@1 | ||
inputs: | ||
packageFeedSelector: 'nugetOrg' # Options: nugetOrg, customFeed, netShare | ||
versionSelector: 'latestStable' # Required when packageFeedSelector == NugetOrg || PackageFeedSelector == CustomFeed# Options: latestPreRelease, latestStable, specificVersion | ||
#testPlatformVersion: # Required when versionSelector == SpecificVersion | ||
#customFeed: # Required when packageFeedSelector == CustomFeed | ||
#username: # Optional | ||
#password: # Optional | ||
#netShare: # Required when packageFeedSelector == NetShare | ||
- script: CALL .scripts/restore.cmd | ||
displayName: 'Restore dependencies' | ||
env: | ||
nugetPath: $(Build.SourcesDirectory)\vowpalwabbit\.nuget\nuget.exe | ||
failOnStderr: true | ||
- script: CALL .scripts/build.cmd | ||
displayName: 'Build vw.sln' | ||
env: | ||
nugetPath: $(Build.SourcesDirectory)\vowpalwabbit\.nuget\nuget.exe | ||
failOnStderr: true | ||
- script: CALL .scripts/test.cmd | ||
displayName: 'Run tests' | ||
env: | ||
nugetPath: $(Build.SourcesDirectory)\vowpalwabbit\.nuget\nuget.exe | ||
failOnStderr: false | ||
- task: PublishTestResults@2 | ||
displayName: 'Publish Test Results' | ||
inputs: | ||
testResultsFormat: VSTest | ||
testResultsFiles: '**/vowpalwabbit/out/test/Release/x64/*.trx' | ||
- script: CALL .scripts/package.cmd | ||
displayName: 'Package artifacts' | ||
env: | ||
Tag: +$(Build.SourceVersion) | ||
nugetPath: $(Build.SourcesDirectory)\vowpalwabbit\.nuget\nuget.exe | ||
failOnStderr: true | ||
- task: PublishBuildArtifacts@1 | ||
displayName: 'Publish Artifact: target' | ||
inputs: | ||
PathtoPublish: $(Build.SourcesDirectory)\vowpalwabbit\out\target | ||
ArtifactName: target | ||
condition: succeededOrFailed() | ||
- task: PublishBuildArtifacts@1 | ||
displayName: 'Publish Artifact: package' | ||
inputs: | ||
PathtoPublish: $(Build.SourcesDirectory)\vowpalwabbit\out\package | ||
ArtifactName: package | ||
condition: succeededOrFailed() |
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
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,6 @@ | ||
IF NOT DEFINED VsInstallDir ( | ||
REM Try to find VS Install | ||
FOR /f "usebackq tokens=*" %%i IN (`"%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe" -latest -products * -requires Microsoft.Component.MSBuild -property installationPath`) DO ( | ||
SET "VsInstallDir=%%i" | ||
) | ||
) |
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
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
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
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what is nr?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This disables node-reuse, which means it gets new msbuild "nodes" (processes) to build. It leads to more reliable builds, at the cost of a minute amount of built time, linear in number of projects.