-
Notifications
You must be signed in to change notification settings - Fork 2
/
#install.setup-coverage.PS1
28 lines (24 loc) · 1.75 KB
/
#install.setup-coverage.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
# install ~ install any needed code coverage dependencies
if ( $null -ne $env:CI_DEBUG ) { set-PSdebug -trace 1 }
$exit_val = 0
if ( $null -eq $env:CI_HELPERS ) { $env:CI_HELPERS = [IO.Path]::GetFullPath(".") }
if ( ($null -eq $env:CI_SKIP) -and ($null -eq $env:OS_unsupported) -and ($null -ne $env:COVERAGE) ) {
# install coverage support
& "${env:CI_HELPERS}\cpanm-mods_only.BAT" @( '--no-interactive', '--no-man-pages', '--notest', '--quiet', '--skip-satisfied', 'Devel::Cover' )
if ( $LASTEXITCODE -ne 0 ) { $exit_val = $LASTEXITCODE }
($env:COVERAGE).split() | foreach {
# echo "\"${env:CI_HELPERS}\cpanm-mods_only.BAT\" --no-interactive --no-man-pages --notest --quiet --skip-satisfied Devel::Cover::Report::$_"
if ( "$_".trim() -ieq "Coveralls" ) {
## override for flawed default "Coveralls"; use patched version from personal github repo
# "${env:CI_HELPERS}\cpanm-mods_only.BAT" --no-interactive --no-man-pages --notest --quiet --skip-satisfied https://github.com/rivy/perl.Devel-Cover-Report-Coveralls.git
& "${env:CI_HELPERS}\cpanm-mods_only.BAT" @( '--no-interactive', '--no-man-pages', '--notest', '--quiet', '--skip-satisfied', 'https://github.com/rivy/perl.Devel-Cover-Report-Coveralls.git' )
if ( $LASTEXITCODE -ne 0 ) { $exit_val = $LASTEXITCODE }
} else {
# "${env:CI_HELPERS}\cpanm-mods_only.BAT" --no-interactive --no-man-pages --notest --quiet --skip-satisfied Devel::Cover::Report::$_
& "${env:CI_HELPERS}\cpanm-mods_only.BAT" @( '--no-interactive', '--no-man-pages', '--notest', '--quiet', '--skip-satisfied', "Devel::Cover::Report::$_" )
if ( $LASTEXITCODE -ne 0 ) { $exit_val = $LASTEXITCODE }
}
}
}
set-PSdebug -off
exit $exit_val