-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.fsx
32 lines (27 loc) · 1.04 KB
/
build.fsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#r @"._fake/packages/FAKE/tools/FakeLib.dll"
#r @"._fake/packages/FSharp.FakeTargets/tools/FSharp.FakeTargets.dll"
open Fake
open NuGetHelper
open RestorePackageHelper
datNET.Targets.initialize (fun p ->
{ p with
AccessKey = environVar "BUGSNAG_NET_NUGET_API_KEY"
AssemblyInfoFilePaths = ["SharedAssemblyInfo.cs"]
Authors = ["Andrew Seward"; "Mathew Glodack"]
Description = "A Bugsnag notifier client for .NET projects"
OutputPath = "."
Project = "Bugsnag.NET"
ProjectFilePath = Some "Bugsnag.NET/Bugsnag.NET.csproj"
Publish = true
TestAssemblies = !! "Bugsnag.NET.Tests/**/bin/**/*.Tests.dll"
WorkingDir = "."
}
)
Target "RestorePackages" (fun _ ->
"Bugsnag.NET.sln" |> RestoreMSSolutionPackages id
)
"MSBuild" <== ["Clean"; "RestorePackages"]
"Test" <== ["MSBuild"]
"Package:Project" <== ["MSBuild"]
"Publish" <== ["Package:Project"]
RunTargetOrDefault "MSBuild"