Changes to allow using kpm add to publish artifacts to CI volatile directory
This commit is contained in:
parent
466a710a16
commit
99a22149a9
|
|
@ -73,7 +73,7 @@ default Configuration='${E("Configuration")}'
|
|||
|
||||
|
||||
#nuget-install target='install' description='Install NuGet packages to local repo'
|
||||
kpm-local-publish sourcePackagesDir='${BUILD_DIR}'
|
||||
kpm-local-publish sourcePackagesDir='${BUILD_DIR}' targetPackagesDir='${E("PACKAGES_PUBLISH_DIR")}'
|
||||
|
||||
#xunit-test target='test' if='Directory.Exists("test")'
|
||||
k-test each='var projectFile in Files.Include("test/**/project.json")'
|
||||
|
|
|
|||
|
|
@ -5,12 +5,17 @@ k-local-publish
|
|||
|
||||
sourcePackagesDir=''
|
||||
Required. Path to packages to install (skips symbol packages)
|
||||
|
||||
targetPackagesDir=''
|
||||
Optional. Path to publish packages.
|
||||
*/}
|
||||
|
||||
default targetPackagesDir=''
|
||||
|
||||
@{
|
||||
var packages = Directory.EnumerateFiles(sourcePackagesDir, "*.nupkg")
|
||||
.Where(p => !p.EndsWith(".symbols.nupkg"));
|
||||
}
|
||||
|
||||
exec program='cmd' commandline='/C kpm packages add ${package}' if='!IsMono' each='var package in packages'
|
||||
exec program='kpm' commandline='packages add ${package}' if='IsMono' each='var package in packages'
|
||||
exec program='cmd' commandline='/C kpm packages add ${package} ${targetPackagesDir}' if='!IsMono' each='var package in packages'
|
||||
exec program='kpm' commandline='packages add ${package} ${targetPackagesDir}' if='IsMono' each='var package in packages'
|
||||
|
|
|
|||
Loading…
Reference in New Issue