forked from NuGetArchive/NuGet3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile.shade
22 lines (17 loc) · 1.42 KB
/
makefile.shade
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
var VERSION='0.1'
var FULL_VERSION='0.1'
var AUTHORS='Microsoft Open Technologies, Inc.'
use-standard-lifecycle
k-standard-goals
#repo-initialize
exec program='cmd' commandline='/C dnu restore --parallel' if='!IsMono' workingdir="${Path.Combine(Directory.GetCurrentDirectory(), "src")}"
exec program='dnu' commandline='restore' if='IsMono' workingdir="${Path.Combine(Directory.GetCurrentDirectory(), "src")}"
exec program='cmd' commandline='/C dnu restore --parallel' if='!IsMono' workingdir="${Path.Combine(Directory.GetCurrentDirectory(), "test")}"
exec program='dnu' commandline='restore' if='IsMono' workingdir="${Path.Combine(Directory.GetCurrentDirectory(), "test")}"
#build-nuget-commandline-cmd target="package"
exec program='cmd' commandline='/C dnu publish --runtime active --configuration Release --no-source' if='!IsMono' workingdir="${Path.Combine(Directory.GetCurrentDirectory(), "src", "NuGet.CommandLine")}"
exec program='dnu' commandline='publish' if='IsMono' workingdir="${Path.Combine(Directory.GetCurrentDirectory(), "src", "NuGet.CommandLine")}"
@{
var commandLineVersion = "3.1.0-" + E("DNX_BUILD_VERSION");
}
nuget-pack nuspecFile="${Path.Combine(Directory.GetCurrentDirectory(), "src", "NuGet.CommandLine", "NuGet.CommandLine.Cmd.nuspec")}" outputDir="${Path.Combine(Directory.GetCurrentDirectory(), "artifacts", "build")}" extra=" -version ${commandLineVersion} -nopackageanalysis"