From e33eec58f3495944e1b3413c70ea0d896cbba2b1 Mon Sep 17 00:00:00 2001 From: Anjana Supun Date: Mon, 5 Jun 2023 14:41:17 +0530 Subject: [PATCH] Add ballerina to test workflows --- .azure-pipelines/common/test.yml | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/.azure-pipelines/common/test.yml b/.azure-pipelines/common/test.yml index 35f78c724..84c4b83f5 100644 --- a/.azure-pipelines/common/test.yml +++ b/.azure-pipelines/common/test.yml @@ -7,6 +7,30 @@ steps: displayName: 'Start X Virtual Frame Buffer' condition: eq(variables['Agent.OS'], 'Linux') +# Tempoary workaround for /~https://github.com/ballerina-platform/ballerina-distribution/issues/4537 +- script: | + curl -o ballerina.deb 'https://dist.ballerina.io/downloads/2201.6.0/ballerina-2201.6.0-swan-lake-linux-x64.deb' + sudo dpkg -i ballerina.deb + rm -f ballerina.deb + displayName: Install Ballerina(Linux) + condition: eq(variables['Agent.OS'], 'Linux') + +- script: | + curl -o ballerina.pkg 'https://dist.ballerina.io/downloads/2201.6.0/ballerina-2201.6.0-swan-lake-macos-x64.pkg' + sudo installer -pkg ballerina.pkg -target / + rm -f ballerina.pkg + echo '##vso[task.prependpath]/Library/Ballerina/bin' + displayName: Install Ballerina(MacOS) + condition: eq(variables['Agent.OS'], 'Darwin') + +- script: | + curl -o ballerina.msi https://dist.ballerina.io/downloads/2201.6.0/ballerina-2201.6.0-swan-lake-windows-x64.msi + msiexec /i ballerina.msi /quiet /qr /L*V "C:\Temp\msilog.log" + del ballerina.msi + echo "##vso[task.setvariable variable=PATH]C:\Program Files\Ballerina\bin;$(PATH)" + displayName: Install Ballerina(Windows) + condition: eq(variables['Agent.OS'], 'Windows_NT') + - task: UsePythonVersion@0 displayName: 'Use Python 3.7.x' inputs: @@ -46,4 +70,3 @@ steps: testResultsFiles: '*-results.xml' testRunTitle: '$(Agent.OS)' condition: succeededOrFailed() - \ No newline at end of file