Skip to content
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

build(pipeline): Add pipeline package caching #767

Closed
wants to merge 18 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ variables:
MygetFeed: https://www.myget.org/F/stryker-mutator-integrationtest
AzureArtifactFeedUri: https://pkgs.dev.azure.com/stryker-mutator/Stryker/_packaging/stryker-net/nuget/v3/index.json
MygetFeedFeedUri: https://www.myget.org/F/stryker-mutator-integrationtest/api/v3/index.json
NUGET_PACKAGES: $(Pipeline.Workspace)/.nuget/packages
LibManCacheWindows: $(USERPROFILE)/.librarymanager/cache
LibManCacheMacLinux: $(HOME)/.librarymanager/cache

stages:
- stage: Analysis
Expand Down Expand Up @@ -63,6 +66,7 @@ stages:
projects: 'src/Stryker.Core/Stryker.Core.UnitTest/Stryker.Core.UnitTest.csproj'
arguments: '--logger trx --results-directory $(Agent.TempDirectory) --collect "Code coverage"'
publishTestResults: false
- template: pipeline-templates/populate-cache-steps.yml
- task: SonarCloudAnalyze@1
- task: SonarCloudPublish@1
inputs:
Expand All @@ -89,6 +93,7 @@ stages:
custom: 'restore'
arguments: '--packages ./.vstest/'
workingDirectory: 'src/Stryker.Core/Stryker.Core/ToolHelpers/'
- template: pipeline-templates/populate-cache-steps.yml
- task: DotNetCoreCLI@2
displayName: 'Pack integrationtest packages'
inputs:
Expand Down Expand Up @@ -199,6 +204,7 @@ stages:
custom: 'restore'
arguments: '--packages ./.vstest/'
workingDirectory: 'src/Stryker.Core/Stryker.Core/ToolHelpers/'
- template: pipeline-templates/populate-cache-steps.yml
- task: DotNetCoreCLI@2
displayName: 'Pack preview package'
inputs:
Expand Down Expand Up @@ -235,6 +241,7 @@ stages:
custom: 'restore'
arguments: '--packages ./.vstest/'
workingDirectory: 'src/Stryker.Core/Stryker.Core/ToolHelpers/'
- template: pipeline-templates/populate-cache-steps.yml
- task: DotNetCoreCLI@2
displayName: 'Pack release package'
inputs:
Expand Down
6 changes: 6 additions & 0 deletions integrationtest/TargetProjects/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,10 @@
<BuildDirectory>$(RootDirectory)BuildFiles\</BuildDirectory>
</PropertyGroup>

<PropertyGroup>
<RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>
<RestoreLockedMode>true</RestoreLockedMode>
<DisableImplicitNuGetFallbackFolder>true</DisableImplicitNuGetFallbackFolder>
</PropertyGroup>

</Project>
74 changes: 74 additions & 0 deletions integrationtest/TargetProjects/Library/packages.lock.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
{
"version": 1,
"dependencies": {
".NETCoreApp,Version=v2.1": {
"Microsoft.NETCore.App": {
"type": "Direct",
"requested": "[2.1.0, )",
"resolved": "2.1.0",
"contentHash": "JNHhG+j5eIhG26+H721IDmwswGUznTwwSuJMFe/08h0X2YarHvA15sVAvUkA/2Sp3W0ENNm48t+J7KTPRqEpfA==",
"dependencies": {
"Microsoft.NETCore.DotNetHostPolicy": "2.1.0",
"Microsoft.NETCore.Platforms": "2.1.0",
"Microsoft.NETCore.Targets": "2.1.0",
"NETStandard.Library": "2.0.3"
}
},
"Microsoft.NETCore.DotNetAppHost": {
"type": "Transitive",
"resolved": "2.1.0",
"contentHash": "vMn8V3GOp/SPOG2oE8WxswzAWZ/GZmc8EPiB3vc2EZ6us14ehXhsvUFXndYopGNSjCa9OdqC6L6xStF1KyUZnw=="
},
"Microsoft.NETCore.DotNetHostPolicy": {
"type": "Transitive",
"resolved": "2.1.0",
"contentHash": "vBUwNihtLUVS2HhO6WocYfAktRmfFihm6JB8/sJ53caVW+AelvbnYpfiGzaZDpkWjN6vA3xzOKPu9Vu8Zz3p8Q==",
"dependencies": {
"Microsoft.NETCore.DotNetHostResolver": "2.1.0"
}
},
"Microsoft.NETCore.DotNetHostResolver": {
"type": "Transitive",
"resolved": "2.1.0",
"contentHash": "o0PRql5qOHFEY3d1WvzE+T7cMFKtOsWLMg8L1oTeGNnI4u5AzOj8o6AdZT3y2GxFA1DAx7AQ9qZjpCO2/bgZRw==",
"dependencies": {
"Microsoft.NETCore.DotNetAppHost": "2.1.0"
}
},
"Microsoft.NETCore.Platforms": {
"type": "Transitive",
"resolved": "2.1.0",
"contentHash": "ok+RPAtESz/9MUXeIEz6Lv5XAGQsaNmEYXMsgVALj4D7kqC8gveKWXWXbufLySR2fWrwZf8smyN5RmHu0e4BHA=="
},
"Microsoft.NETCore.Targets": {
"type": "Transitive",
"resolved": "2.1.0",
"contentHash": "x188gIZXOwFXkPXyGavEcPGcR6RGvjFOES2QzskN4gERZjWPN34qhRsZVMC0CLJfQLGSButarcgWxPPM4vmg0w=="
},
"NETStandard.Library": {
"type": "Transitive",
"resolved": "2.0.3",
"contentHash": "st47PosZSHrjECdjeIzZQbzivYBJFv6P2nv4cj2ypdI204DO+vZ7l5raGMiX4eXMJ53RfOIg+/s4DHVZ54Nu2A==",
"dependencies": {
"Microsoft.NETCore.Platforms": "1.1.0"
}
}
},
".NETStandard,Version=v2.0": {
"NETStandard.Library": {
"type": "Direct",
"requested": "[2.0.3, )",
"resolved": "2.0.3",
"contentHash": "st47PosZSHrjECdjeIzZQbzivYBJFv6P2nv4cj2ypdI204DO+vZ7l5raGMiX4eXMJ53RfOIg+/s4DHVZ54Nu2A==",
"dependencies": {
"Microsoft.NETCore.Platforms": "1.1.0"
}
},
"Microsoft.NETCore.Platforms": {
"type": "Transitive",
"resolved": "1.1.0",
"contentHash": "kz0PEW2lhqygehI/d6XsPCQzD7ff7gUJaVGPVETX611eadGsA3A877GdSlU0LRVMCTH/+P3o2iDTak+S08V2+A=="
}
}
}
}
Loading