mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-23 20:03:31 +01:00
Appveyor: Avoid spurious errors in Appveyor CI builds
When Appveyor fails before the install step, some of the finish step's functions were not defined. Fixes bug 31884; bugfix on 0.3.4.2-alpha.
This commit is contained in:
parent
02840169d8
commit
b186418792
@ -100,6 +100,18 @@ test_script:
|
||||
|
||||
on_finish:
|
||||
- ps: >-
|
||||
<# if we failed before install:, these functions won't be defined #>
|
||||
Function Execute-Command ($commandPath)
|
||||
{
|
||||
& $commandPath $args 2>&1
|
||||
if ( $LastExitCode -ne 0 ) {
|
||||
$host.SetShouldExit( $LastExitCode )
|
||||
}
|
||||
}
|
||||
Function Execute-Bash ()
|
||||
{
|
||||
Execute-Command 'c:\msys64\usr\bin\bash' '-e' '-c' $args
|
||||
}
|
||||
if ($env:compiler -eq "mingw") {
|
||||
<# use the MSYS2 user binaries to archive failures #>
|
||||
$oldpath = ${env:Path} -split ';'
|
||||
|
3
changes/bug31884
Normal file
3
changes/bug31884
Normal file
@ -0,0 +1,3 @@
|
||||
o Minor bugfixes (Appveyor CI):
|
||||
- Avoid spurious errors when Appveyor CI fails before the install step.
|
||||
Fixes bug 31884; bugfix on 0.3.4.2-alpha.
|
Loading…
Reference in New Issue
Block a user