From 5f55bf20294c9600ad2221fc5f2bc40a31711de7 Mon Sep 17 00:00:00 2001 From: David Wilson Date: Thu, 23 Aug 2018 19:18:29 -0700 Subject: [PATCH 1/3] Try "Hosted Ubuntu 1604" queue in VSTS --- script/vsts/platforms/linux.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/vsts/platforms/linux.yml b/script/vsts/platforms/linux.yml index af52de7c6..82093d70c 100644 --- a/script/vsts/platforms/linux.yml +++ b/script/vsts/platforms/linux.yml @@ -4,7 +4,7 @@ phases: variables: ReleaseVersion: $[ dependencies.GetReleaseVersion.outputs['Version.ReleaseVersion'] ] queue: - name: Hosted Linux Preview + name: Hosted Ubuntu 1604 timeoutInMinutes: 180 steps: From 1a780c84a2ee5f4916c3de4fc3526509ca483c86 Mon Sep 17 00:00:00 2001 From: David Wilson Date: Thu, 23 Aug 2018 19:51:38 -0700 Subject: [PATCH 2/3] Use 'sudo' for apt-get invocations --- script/vsts/platforms/linux.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/script/vsts/platforms/linux.yml b/script/vsts/platforms/linux.yml index 82093d70c..f9ba8a4b9 100644 --- a/script/vsts/platforms/linux.yml +++ b/script/vsts/platforms/linux.yml @@ -17,8 +17,8 @@ phases: displayName: Update npm - script: | - apt-get update - apt-get install -y --no-install-recommends build-essential xvfb clang-3.5 fakeroot git libsecret-1-dev rpm libx11-dev libxkbfile-dev xz-utils xorriso zsync libxss1 libgconf2-4 libgtk-3-0 + sudo apt-get update + sudo apt-get install -y --no-install-recommends build-essential xvfb clang-3.5 fakeroot git libsecret-1-dev rpm libx11-dev libxkbfile-dev xz-utils xorriso zsync libxss1 libgconf2-4 libgtk-3-0 displayName: Install apt dependencies - script: | From c096aa6bacfdd9c645f98431aafe29868b1b82de Mon Sep 17 00:00:00 2001 From: David Wilson Date: Thu, 23 Aug 2018 19:52:09 -0700 Subject: [PATCH 3/3] Use 'sudo' with /sbin/start-stop-daemon --- script/vsts/platforms/linux.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/vsts/platforms/linux.yml b/script/vsts/platforms/linux.yml index f9ba8a4b9..51e7e5001 100644 --- a/script/vsts/platforms/linux.yml +++ b/script/vsts/platforms/linux.yml @@ -31,7 +31,7 @@ phases: displayName: Run linter - script: | - /sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -ac -screen 0 1280x1024x16 + sudo /sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -ac -screen 0 1280x1024x16 export DISPLAY=':99.0' Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 & script/test