Skip to content

Commit

Permalink
integrated Incrementalist into build pipeline (akkadotnet#3788)
Browse files Browse the repository at this point in the history
* integrated Incrementalist into build pipeline

* added workaround for https://github.com/dotnet/cli/issues/9114

* added option to skip builds entirely if no code changes found
  • Loading branch information
Aaronontheweb committed Jul 30, 2019
1 parent 1566dc9 commit 437be4e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 279 deletions.
7 changes: 4 additions & 3 deletions build.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ let runIncrementally = hasBuildParam "incremental"
let incrementalistReport = output @@ "incrementalist.txt"

// Configuration values for tests
let testNetFrameworkVersion = "net452"
let testNetCoreVersion = "netcoreapp1.1"
let testNetFrameworkVersion = "net461"
let testNetCoreVersion = "netcoreapp2.1"

Target "Clean" (fun _ ->
ActivateFinalTarget "KillCreatedProcesses"
Expand Down Expand Up @@ -93,6 +93,7 @@ let getAffectedProjects =

Target "ComputeIncrementalChanges" (fun _ ->
if runIncrementally then
log (sprintf "(Debug) .NET Core Root found at %s" (Environment.GetEnvironmentVariable "DOTNET_ROOT"))
let targetBranch = match getBuildParam "targetBranch" with
| "" -> "dev"
| null -> "dev"
Expand Down Expand Up @@ -424,7 +425,7 @@ Target "CreateNuget" (fun _ ->

projects |> Seq.iter (runSingleProject)
)

open Fake.TemplateHelper
Target "PublishMntr" (fun _ ->
if not skipBuild.Value then
let executableProjects = !! "./src/**/Akka.MultiNodeTestRunner.csproj"
Expand Down
273 changes: 0 additions & 273 deletions buildIncremental.fsx

This file was deleted.

5 changes: 2 additions & 3 deletions src/Akka.sln
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Build", "Build", "{10C5B1E8-15B5-4EB3-81AE-1FC054FE1305}"
ProjectSection(SolutionItems) = preProject
..\build.fsx = ..\build.fsx
..\buildIncremental.fsx = ..\buildIncremental.fsx
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Contrib", "Contrib", "{588C1513-FAB6-42C3-B6FC-3485F13620CF}"
Expand Down Expand Up @@ -188,9 +187,9 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Samples.Cluster.Simple", "e
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Samples.Cluster.Transformation", "examples\Cluster\Roles\Samples.Cluster.Transformation\Samples.Cluster.Transformation.csproj", "{01B074DB-67C8-4600-8CE2-DAAAFC052261}"
EndProject
Project("{6EC3EE1D-3C4E-46DD-8F32-0CC8E7565705}") = "Akka.FSharp", "core/Akka.FSharp/Akka.FSharp.fsproj", "{483B4579-2665-49FC-A7E4-42C67FEC7531}"
Project("{6EC3EE1D-3C4E-46DD-8F32-0CC8E7565705}") = "Akka.FSharp", "core\Akka.FSharp\Akka.FSharp.fsproj", "{483B4579-2665-49FC-A7E4-42C67FEC7531}"
EndProject
Project("{6EC3EE1D-3C4E-46DD-8F32-0CC8E7565705}") = "Akka.FSharp.Tests", "core/Akka.FSharp.Tests/Akka.FSharp.Tests.fsproj", "{FA2E30CC-9F2D-4BFC-9899-347B32DF7181}"
Project("{6EC3EE1D-3C4E-46DD-8F32-0CC8E7565705}") = "Akka.FSharp.Tests", "core\Akka.FSharp.Tests\Akka.FSharp.Tests.fsproj", "{FA2E30CC-9F2D-4BFC-9899-347B32DF7181}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Akka.Benchmarks", "benchmark\Akka.Benchmarks\Akka.Benchmarks.csproj", "{A1D57384-A933-480A-9DF4-FA5E60AB1A67}"
EndProject
Expand Down

0 comments on commit 437be4e

Please sign in to comment.