-
Notifications
You must be signed in to change notification settings - Fork 3
/
psake-project.ps1
32 lines (25 loc) · 1.07 KB
/
psake-project.ps1
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
Include "packages\Hangfire.Build.0.4.2\tools\psake-common.ps1"
Task Default -Depends Pack
Task Test -Depends Compile -Description "Run unit and integration tests." {
Exec { dotnet test -c release --no-build "tests\Hangfire.DynamicJobs.Tests" }
}
Task Collect -Depends Test -Description "Copy all artifacts to the build folder." {
Collect-Assembly "Hangfire.DynamicJobs" "net451"
Collect-Assembly "Hangfire.DynamicJobs" "netstandard1.3"
Collect-Assembly "Hangfire.DynamicJobs" "netstandard2.0"
Collect-File "LICENSE"
Collect-File "LICENSE_STANDARD"
Collect-File "LICENSE_ROYALTYFREE"
Collect-File "COPYING.LESSER"
Collect-File "COPYING"
Collect-File "README.md"
}
Task Pack -Depends Collect -Description "Create NuGet packages and archive files." {
$version = Get-PackageVersion
Create-Package "Hangfire.DynamicJobs" $version
Create-Archive "Hangfire.DynamicJobs-$version"
}
Task Sign -Depends Pack -Description "Sign artifacts." {
$version = Get-PackageVersion
Sign-ArchiveContents "Hangfire.DynamicJobs-$version" "hangfire"
}