File tree 3 files changed +10
-9
lines changed
3 files changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -57,7 +57,15 @@ function Invoke-CrossCompatibilityModuleBuild
57
57
Push-Location $script :BinModSrcDir
58
58
try
59
59
{
60
- dotnet publish -f $Framework - c $Configuration
60
+ if ( Test-Path " $HOME /.dotnet/dotnet" )
61
+ {
62
+ $dotnet = " $HOME /.dotnet/dotnet"
63
+ }
64
+ else
65
+ {
66
+ $dotnet = " dotnet"
67
+ }
68
+ & $dotnet publish -- framework $Framework -- configuration $Configuration
61
69
}
62
70
finally
63
71
{
Original file line number Diff line number Diff line change @@ -97,10 +97,6 @@ Describe "Test importing correct customized rules" {
97
97
It " will show the custom rules when given a glob" {
98
98
# needs fixing for Linux
99
99
$expectedNumRules = 4
100
- if ($IsLinux )
101
- {
102
- $expectedNumRules = 3
103
- }
104
100
$customizedRulePath = Get-ScriptAnalyzerRule - CustomizedRulePath $directory \samplerule\samplerule* | Where-Object {$_.RuleName -match $measure }
105
101
$customizedRulePath.Count | Should - Be $expectedNumRules
106
102
}
@@ -113,10 +109,6 @@ Describe "Test importing correct customized rules" {
113
109
It " will show the custom rules when given glob with recurse switch" {
114
110
# needs fixing for Linux
115
111
$expectedNumRules = 5
116
- if ($IsLinux )
117
- {
118
- $expectedNumRules = 4
119
- }
120
112
$customizedRulePath = Get-ScriptAnalyzerRule - RecurseCustomRulePath - CustomizedRulePath $directory \samplerule\samplerule* | Where-Object {$_.RuleName -eq $measure }
121
113
$customizedRulePath.Count | Should - Be $expectedNumRules
122
114
}
Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ function Invoke-AppVeyorInstall {
36
36
Write-Verbose " & $buildScriptDir /build.ps1 -bootstrap"
37
37
$buildScriptDir = (Resolve-Path " $PSScriptRoot /.." ).Path
38
38
& " $buildScriptDir /build.ps1" - bootstrap
39
+ $Global :LASTEXITCODE = $LASTEXITCODE = 0 # needed to avoid a premature abortion of the AppVeyor Ubuntu build
39
40
}
40
41
41
42
# Implements AppVeyor 'test_script' step
You can’t perform that action at this time.
0 commit comments