@@ -43,14 +43,20 @@ jobs:
4343 _targetFramework : netcoreapp2.1
4444 ${{ if ne(parameters.customMatrixes, '') }} :
4545 ${{ insert }} : ${{ parameters.customMatrixes }}
46-
46+
4747 pool : ${{ parameters.pool }}
4848 ${{ if ne(parameters.container, '') }} :
4949 container : ${{ parameters.container }}
5050
5151 steps :
52+ # Work around MacOS Homebrew image/environment bug: https://github.com/actions/virtual-environments/issues/2322#issuecomment-749211076
53+ - ${{ if eq(parameters.pool.name, 'Hosted macOS') }} :
54+ - script : |
55+ rm -rf /usr/local/bin/2to3
56+ displayName: MacOS Homebrew bug Workaround
57+ continueOnError: true
5258 - ${{ if eq(parameters.pool.name, 'Hosted macOS') }} :
53- - script : brew update && brew install $(Build.SourcesDirectory)/build/libomp.rb && brew unlink python@2 && brew install mono-libgdiplus gettext && brew link gettext --force && brew link libomp --force
59+ - script : brew update && brew install mono-libgdiplus && brew install $(Build.SourcesDirectory)/build/libomp.rb && brew link libomp --force
5460 displayName : Install build dependencies
5561 - ${{ if and( eq(parameters.nightlyBuild, 'true'), eq(parameters.pool.name, 'Hosted Ubuntu 1604')) }} :
5662 - bash : echo "##vso[task.setvariable variable=LD_LIBRARY_PATH]$(nightlyBuildRunPath):$LD_LIBRARY_PATH"
8995 Get-ChildItem -Path '.\bin\AnyCPU.*' -Recurse |
9096 Select -ExpandProperty FullName |
9197 Where {$_ -notlike '*\Microsoft.ML.NightlyBuild.Tests*'} |
92- sort length -Descending |
93- Remove-Item -force
98+ sort length -Descending |
99+ Remove-Item -force
94100 Write-Output "Done cleaning up usless project..."
95101 displayName: Clean up useless project
96102 - script : $(dotnetPath) msbuild -restore $(nightlyBuildProjPath) /p:ReferenceTypeForTestFramework="Nuget" /p:Configuration=$(_configuration) /p:TargetArchitecture=${{ parameters.architecture }}
@@ -119,10 +125,10 @@ jobs:
119125 testAssemblyVer2 : |
120126 **\*test.dll
121127 **\*tests.dll
122- !**\obj\**
128+ !**\obj\**
123129 runSettingsFile : $(Build.SourcesDirectory)/tools-local/vstest.runsettings
124130 searchFolder : ' $(System.DefaultWorkingDirectory)'
125- vstestLocationMethod : ' version'
131+ vstestLocationMethod : ' version'
126132 vsTestVersion : ' latest'
127133 runInParallel : False
128134 runTestsInIsolation : True
0 commit comments