Skip to content

Commit

Permalink
updated build script
Browse files Browse the repository at this point in the history
  • Loading branch information
leastprivilege committed Oct 29, 2017
1 parent 555a73d commit ee460d1
Showing 1 changed file with 2 additions and 24 deletions.
26 changes: 2 additions & 24 deletions build.cake
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ var buildArtifacts = Directory("./artifacts/packages");

var isAppVeyor = AppVeyor.IsRunningOnAppVeyor;
var isWindows = IsRunningOnWindows();
var netcore = "netcoreapp1.1";
var netstandard = "netstandard1.4";
var netcore = "netcoreapp2.0";
var netstandard = "netstandard2.0";

///////////////////////////////////////////////////////////////////////////////
// Clean
Expand All @@ -21,31 +21,11 @@ Task("Clean")
CleanDirectories(new DirectoryPath[] { buildArtifacts });
});

///////////////////////////////////////////////////////////////////////////////
// Restore
///////////////////////////////////////////////////////////////////////////////
Task("Restore")
.Does(() =>
{
var settings = new DotNetCoreRestoreSettings
{
Sources = new [] { "https://api.nuget.org/v3/index.json" }
};
var projects = GetFiles("./**/*.csproj");
foreach(var project in projects)
{
DotNetCoreRestore(project.GetDirectory().FullPath, settings);
}
});

///////////////////////////////////////////////////////////////////////////////
// Build
///////////////////////////////////////////////////////////////////////////////
Task("Build")
.IsDependentOn("Clean")
.IsDependentOn("Restore")
.Does(() =>
{
var settings = new DotNetCoreBuildSettings
Expand Down Expand Up @@ -86,7 +66,6 @@ Task("Build")
// Test
///////////////////////////////////////////////////////////////////////////////
Task("Test")
.IsDependentOn("Restore")
.IsDependentOn("Clean")
.Does(() =>
{
Expand All @@ -113,7 +92,6 @@ Task("Test")
// Pack
///////////////////////////////////////////////////////////////////////////////
Task("Pack")
.IsDependentOn("Restore")
.IsDependentOn("Clean")
.Does(() =>
{
Expand Down

0 comments on commit ee460d1

Please sign in to comment.