-
Notifications
You must be signed in to change notification settings - Fork 5
/
psakefile.ps1
36 lines (29 loc) · 1.22 KB
/
psakefile.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
36
Properties {
$ModuleName = 'PowerTab'
$SrcDirectory = "$PSScriptRoot/src"
$OutputDirectory = "$PSScriptRoot/build"
$ReportDirectory = "$OutputDirectory/reports"
$DeployDirectory = "$HOME/Documents/WindowsPowerShell/Modules/$ModuleName"
}
Task 'default' -Depends build
Task 'clean' {
if (Test-Path $OutputDirectory) {
Remove-Item $OutputDirectory -Recurse -Force
}
}
Task 'build' -Depends clean {
New-Item $OutputDirectory -ItemType Directory -ErrorAction SilentlyContinue > $null
Invoke-psake -buildFile modules/powertab/psakefile.ps1 -taskList 'build'
Invoke-psake -buildFile modules/powertabargcompleters/psakefile.ps1 -taskList 'build'
}
Task 'deploy' -Depends build {
Invoke-psake -buildFile modules/powertab/psakefile.ps1 -taskList 'deploy'
Invoke-psake -buildFile modules/powertabargcompleters/psakefile.ps1 -taskList 'deploy'
}
Task 'checkStyle' -Depends build {
Invoke-psake -buildFile modules/powertab/psakefile.ps1 -taskList 'checkStyle'
Invoke-psake -buildFile modules/powertabargcompleters/psakefile.ps1 -taskList 'checkStyle'
}
Task 'test' {
Invoke-psake -buildFile modules/powertabargcompleters/psakefile.ps1 -taskList 'test'
}