Update build.yml to use OSX 10.14 (#874)
authorSung Yoon Whang <suwhang@microsoft.com>
Sat, 7 Mar 2020 04:28:44 +0000 (20:28 -0800)
committerGitHub <noreply@github.com>
Sat, 7 Mar 2020 04:28:44 +0000 (20:28 -0800)
* Update build.yml

* try xcode version 9.4.1

* Try 10.3

* Fix print statements in lldbhelper.py

* PR feedback

* try to fix build

eng/build.yml
src/SOS/SOS.UnitTests/Scripts/lldbhelper.py

index a5c61a96f5ebeb8f675393774f437e1820bbd009..c51ac37d1a40229b227bec2975914842c56c8769 100644 (file)
@@ -56,7 +56,7 @@ jobs:
 
       # Official Build OSX Pool
       ${{ if and(eq(parameters.osGroup, 'MacOS'), eq(variables['System.TeamProject'], 'public')) }}:
-        vmImage: macOS-10.13
+        vmImage: macOS-10.14
 
       # Official Build Windows Pool
       ${{ if and(eq(parameters.osGroup, 'Windows_NT'), ne(variables['System.TeamProject'], 'public')) }}:
@@ -136,6 +136,8 @@ jobs:
         condition: succeeded()
 
     - ${{ if eq(parameters.osGroup, 'MacOS') }}:
+      - ${{ if eq(variables['System.TeamProject'], 'public') }}:
+        - script: /bin/bash -c "sudo xcode-select -s /Applications/Xcode_10.3.app/Contents/Developer"
       - script: $(Build.SourcesDirectory)/eng/cibuild.sh
           --configuration $(_BuildConfig) 
           --architecture $(_BuildArch)
index 47581bcdda6f5802f671ab4d7f09374855c0da7a..6b3326a2b2d25625962a4181cab3c0b79498a109 100644 (file)
@@ -2,7 +2,7 @@ import lldb
 
 def __lldb_init_module(debugger, internal_dict):    
     debugger.HandleCommand('command script add -f lldbhelper.runcommand runcommand')
-    print "<END_COMMAND_OUTPUT>"
+    print("<END_COMMAND_OUTPUT>")
 
 def runcommand(debugger, command, result, internal_dict):
     interpreter = debugger.GetCommandInterpreter()
@@ -11,12 +11,12 @@ def runcommand(debugger, command, result, internal_dict):
     interpreter.HandleCommand(command, commandResult)
 
     if commandResult.GetOutputSize() > 0:
-        print commandResult.GetOutput()
+        print(commandResult.GetOutput())
 
     if commandResult.GetErrorSize() > 0:
-        print commandResult.GetError()
+        print(commandResult.GetError())
 
     if commandResult.Succeeded():
-        print "<END_COMMAND_OUTPUT>"
+        print("<END_COMMAND_OUTPUT>")
     else:
-        print "<END_COMMAND_ERROR>"
+        print("<END_COMMAND_ERROR>")