Skip to content

Commit

Permalink
chore: use install parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
LeMollinger authored and xxthunder committed Apr 19, 2024
1 parent 8c89288 commit f88ceb0
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions build.ps1
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
param(
[Parameter(Mandatory = $false, HelpMessage = 'Clean build, wipe out all build artifacts. (Switch, default: false)')]
[switch]$clean = $false
[switch]$clean = $false,
[Parameter(Mandatory = $false, HelpMessage = 'Install all dependencies required to build. (Switch, default: false)')]
[switch]$install = $false
)

function Test-RunningInCIorTestEnvironment {
Expand Down Expand Up @@ -49,8 +51,10 @@ try {
# bootstrap environment
Invoke-Bootstrap

# Run pypeline
.\.venv\Scripts\pypeline run
if (-Not $install) {
# Run pypeline
.\.venv\Scripts\pypeline run
}
}
finally {
Pop-Location
Expand Down

0 comments on commit f88ceb0

Please sign in to comment.