-
Notifications
You must be signed in to change notification settings - Fork 132
Expand file tree
/
Copy pathpsake-project.ps1
More file actions
30 lines (24 loc) · 962 Bytes
/
psake-project.ps1
File metadata and controls
30 lines (24 loc) · 962 Bytes
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
Include "packages\Hangfire.Build.0.6.0\tools\psake-common.ps1"
Task Default -Depends Pack
Task Test -Depends Compile -Description "Run unit and integration tests." {
Exec { dotnet test --no-build -c release "tests\Cronos.Tests" }
}
Task Collect -Depends Test -Description "Copy all artifacts to the build folder." {
Collect-Assembly "Cronos" "net40"
Collect-Assembly "Cronos" "net45"
Collect-Assembly "Cronos" "netstandard1.0"
Collect-Assembly "Cronos" "netstandard2.0"
Collect-Assembly "Cronos" "net6.0"
Collect-File "LICENSE"
Collect-File "README.md"
Collect-File "icon.png"
}
Task Pack -Depends Collect -Description "Create NuGet packages and archive files." {
$version = Get-SemanticVersion
Create-Package "Cronos" $version
Create-Archive "Cronos-$version"
}
Task Sign -Depends Pack -Description "Sign artifacts." {
$version = Get-SemanticVersion
Sign-ArchiveContents "Cronos-$version" "cronos"
}