-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathpsake-project.ps1
35 lines (25 loc) · 1.09 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
33
34
35
Properties {
$solution = "Hangfire.Firebird.sln"
}
Include "packages\Hangfire.Build.*\tools\psake-common.ps1"
Task Default -Depends Collect
Task Test -Depends Compile -Description "Run unit and integration tests." {
Run-XunitTests "Hangfire.Firebird.Tests"
Run-XunitTests "Hangfire.Firebird.Msmq.Tests"
}
Task Merge -Depends Test -Description "Run ILMerge /internalize to merge assemblies." {
# Remove `*.pdb` file to be able to prepare NuGet symbol packages.
Remove-Item ((Get-SrcOutputDir "Hangfire.Firebird") + "\Dapper.pdb")
Merge-Assembly "Hangfire.Firebird" @("Dapper")
}
Task Collect -Depends Merge -Description "Copy all artifacts to the build folder." {
Collect-Assembly "Hangfire.Firebird" "Net45"
Collect-Assembly "Hangfire.Firebird.Msmq" "Net45"
Collect-Tool "src\Hangfire.Firebird\Install.v1.sql"
}
Task Pack -Depends Collect -Description "Create NuGet packages and archive files." {
$version = Get-BuildVersion
Create-Archive "Hangfire-Firebird-$version"
Create-Package "Hangfire.Firebird" $version
Create-Package "Hangfire.Firebird.Msmq" $version
}