File tree 1 file changed +15
-11
lines changed 1 file changed +15
-11
lines changed Original file line number Diff line number Diff line change 1
1
# !/usr/bin/env pwsh
2
2
param (
3
+ [Parameter ()]
4
+ [switch ]
5
+ $Bootstrap ,
6
+
3
7
[Parameter ()]
4
8
[switch ]
5
9
$Clean ,
6
10
7
11
[Parameter ()]
8
12
[switch ]
9
- $BootstrapBuildEnv
13
+ $Test
10
14
)
11
15
12
16
$NeededTools = @ {
@@ -69,7 +73,7 @@ function hasMissingTools () {
69
73
return ((getMissingTools).Count -gt 0 )
70
74
}
71
75
72
- if ($BootstrapBuildEnv ) {
76
+ if ($Bootstrap ) {
73
77
$string = " Here is what your environment is missing:`n "
74
78
$missingTools = getMissingTools
75
79
if (($missingTools ).Count -eq 0 ) {
@@ -80,16 +84,16 @@ if ($BootstrapBuildEnv) {
80
84
+ " https://github.com/powershell/PowerShellEditorServices#development"
81
85
}
82
86
Write-Host " `n $string `n "
83
- } elseif ( $Clean ) {
84
- if (hasMissingTools) {
85
- Write-Host " You are missing needed tools. Run './build.ps1 -BootstrapBuildEnv' to see what they are. "
86
- } else {
87
+ } elseif (hasMissingTools ) {
88
+ Write-Host " You are missing needed tools. Run './build.ps1 -Bootstrap' to see what they are. "
89
+ } else {
90
+ if ( $Clean ) {
87
91
Invoke-Build Clean
88
92
}
89
- } else {
90
- if (hasMissingTools) {
91
- Write-Host " You are missing needed tools. Run './build.ps1 -BootstrapBuildEnv' to see what they are. "
92
- } else {
93
- Invoke-Build Build
93
+
94
+ Invoke-Build Build
95
+
96
+ if ( $Test ) {
97
+ Invoke-Build Test
94
98
}
95
99
}
You can’t perform that action at this time.
0 commit comments