mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-02-16 17:51:28 +01:00
Update build-repo.ps1
This commit is contained in:
parent
4801e38d95
commit
6e093e7dee
@ -35,8 +35,8 @@ function BuildInDir([string]$path) {
|
|||||||
& make -j4
|
& make -j4
|
||||||
if ($lastExitCode -ne "0") { throw "Executing 'make -j4' has failed" }
|
if ($lastExitCode -ne "0") { throw "Executing 'make -j4' has failed" }
|
||||||
|
|
||||||
"⏳ (4/4) Executing 'make test' to perform tests (optional)..."
|
"⏳ (4/4) Executing 'ctest -V' to perform tests (optional)..."
|
||||||
& make test
|
& ctest -V
|
||||||
if ($lastExitCode -ne "0") { throw "Executing 'make test' has failed" }
|
if ($lastExitCode -ne "0") { throw "Executing 'make test' has failed" }
|
||||||
|
|
||||||
} elseif (Test-Path "$path/configure" -pathType leaf) {
|
} elseif (Test-Path "$path/configure" -pathType leaf) {
|
||||||
@ -139,7 +139,7 @@ try {
|
|||||||
|
|
||||||
$repoDirName = (Get-Item "$path").Name
|
$repoDirName = (Get-Item "$path").Name
|
||||||
[int]$elapsed = $stopWatch.Elapsed.TotalSeconds
|
[int]$elapsed = $stopWatch.Elapsed.TotalSeconds
|
||||||
"✔️ Built 📂$repoDirName in $elapsed sec"
|
"✔️ Built repo 📂$repoDirName in $elapsed sec"
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
} catch {
|
} catch {
|
||||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||||
|
Loading…
Reference in New Issue
Block a user