Skip to content

Commit e18fbc0

Browse files
authored
Merge pull request #91 from Arkatufus/master
Fix build script
2 parents fbd1bdf + 294e9d7 commit e18fbc0

File tree

2 files changed

+7
-67
lines changed

2 files changed

+7
-67
lines changed

build-system/windows-release.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,15 @@ trigger:
1010
include:
1111
- refs/tags/*
1212

13+
pr: none
14+
1315
variables:
1416
- group: signingSecrets #create this group with SECRET variables `signingUsername` and `signingPassword`
1517
- group: nugetKeys #create this group with SECRET variables `nugetKey`
1618
- name: githubConnectionName
1719
value: AkkaDotNet_Releases
1820
- name: projectName
19-
value: Akka.MultiNodeTestRunner
21+
value: Akka.MultiNode.TestAdapter
2022
- name: githubRepositoryName
2123
value: akkadotnet/Akka.MultiNodeTestRunner
2224

build.fsx

Lines changed: 4 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -224,82 +224,21 @@ let overrideVersionSuffix (project:string) =
224224
| _ -> versionSuffix // add additional matches to publish different versions for different projects in solution
225225

226226
Target "CreateNuget" (fun _ ->
227-
let projects = !! "src/**/*.csproj"
228-
-- "src/**/*Tests.csproj" // Don't publish unit tests
229-
-- "src/**/*Tests*.csproj"
230-
-- "src/**/*.MultiNode.TestAdapter.csproj" // Do not publish MNTR nuget packages
231-
-- "src/**/*.MultiNode.NodeRunner.csproj"
232-
-- "src/**/*.MultiNode.Shared.csproj"
233-
-- "src/**/*.MultiNode.TestRunner.Shared.csproj"
227+
let projects = !! "src/**/*.MultiNode.TestAdapter.csproj"
234228

235229
let runSingleProject project =
236230
DotNetCli.Pack
237231
(fun p ->
238232
{ p with
239233
Project = project
240234
Configuration = configuration
241-
AdditionalArgs = ["--include-symbols --no-build"]
235+
AdditionalArgs = ["--include-symbols"]
242236
VersionSuffix = overrideVersionSuffix project
243237
OutputPath = outputNuGet })
244238

245239
projects |> Seq.iter (runSingleProject)
246240
)
247241

248-
Target "PublishMntr" (fun _ ->
249-
let executableProjects = !! "./src/**/Akka.MultiNode.TestAdapter.csproj"
250-
let additionalArgs = if versionSuffix.Length > 0 then [sprintf "/p:VersionSuffix=%s" versionSuffix] else []
251-
252-
executableProjects |> Seq.iter (fun project ->
253-
DotNetCli.Restore
254-
(fun p ->
255-
{ p with
256-
Project = project
257-
AdditionalArgs = additionalArgs })
258-
)
259-
260-
executableProjects |> Seq.iter (fun project ->
261-
DotNetCli.Publish
262-
(fun p ->
263-
{ p with
264-
Project = project
265-
Configuration = configuration
266-
Framework = "netstandard2.0"
267-
VersionSuffix = versionSuffix }))
268-
)
269-
270-
Target "CreateMntrNuget" (fun _ ->
271-
272-
let commonPropsVersionPrefix = XMLRead true "./src/common.props" "" "" "//Project/PropertyGroup/VersionPrefix" |> Seq.head
273-
let versionReplacement = List.ofSeq [ "@version@", commonPropsVersionPrefix + (if (not (versionSuffix = "")) then ("-" + versionSuffix) else "") ]
274-
275-
// uses the template file to create a temporary .nuspec file with the correct version
276-
let generateNuspec (nuspecTemplatePath : string) =
277-
let nuspecPath = nuspecTemplatePath.Replace(".template", "")
278-
CopyFile nuspecPath nuspecTemplatePath
279-
TemplateHelper.processTemplates versionReplacement [ nuspecPath ]
280-
nuspecPath
281-
282-
let nuspecTemplates = [
283-
"./src/Akka.MultiNode.TestAdapter/Akka.MultiNode.TestAdapter.nuspec.template"
284-
]
285-
let nuspecFiles = List.map (generateNuspec) nuspecTemplates
286-
287-
let executableProjects = !! "./src/**/Akka.MultiNode.TestAdapter.csproj"
288-
289-
executableProjects |> Seq.iter (fun project ->
290-
DotNetCli.Pack
291-
(fun p ->
292-
{ p with
293-
Project = project
294-
Configuration = configuration
295-
AdditionalArgs = ["--include-symbols"]
296-
VersionSuffix = versionSuffix
297-
OutputPath = "\"" + outputNuGet + "\"" } )
298-
)
299-
300-
nuspecFiles |> Seq.iter (DeleteFile)
301-
)
302-
303242
Target "PublishNuget" (fun _ ->
304243
let projects = !! "./bin/nuget/*.nupkg"
305244
let apiKey = getBuildParamOrDefault "nugetkey" ""
@@ -377,15 +316,14 @@ Target "All" DoNothing
377316
Target "Nuget" DoNothing
378317

379318
// build dependencies
380-
"Clean" ==> "AssemblyInfo" ==> "Build"
381-
"Build" ==> "PublishMntr" ==> "BuildRelease"
319+
"Clean" ==> "AssemblyInfo" ==> "Build" ==> "BuildRelease"
382320

383321
// tests dependencies
384322
"Build" ==> "RunTests"
385323
"Build" ==> "RunTestsNet"
386324

387325
// nuget dependencies
388-
"BuildRelease" ==> "CreateMntrNuget" ==> "CreateNuget"
326+
"Clean" ==> "Build" ==> "CreateNuget"
389327
"CreateNuget" ==> "SignPackages" ==> "PublishNuget" ==> "Nuget"
390328

391329
// docs

0 commit comments

Comments
 (0)