From 2aa1f346c49aa2ef1fdd047ea376434b086336e7 Mon Sep 17 00:00:00 2001 From: Surferlul Date: Sat, 3 Jul 2021 20:32:26 +0200 Subject: [PATCH] tests --- azure-pipelines.yml | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 azure-pipelines.yml diff --git a/azure-pipelines.yml b/azure-pipelines.yml new file mode 100644 index 0000000..62bb6c8 --- /dev/null +++ b/azure-pipelines.yml @@ -0,0 +1,43 @@ +trigger: + branches: + include: + - master + tags: + include: + - v* + +strategy: + matrix: + linux: + imageName: 'ubuntu-latest' + mac: + imageName: 'macos-latest' + windows: + imageName: 'windows-latest' + +pool: + vmImage: $(imageName) + +steps: + +- task: NodeTool@0 + inputs: + versionSpec: '10.x' + displayName: 'Install Node.js' + +- bash: | + /usr/bin/Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 & + echo ">>> Started xvfb" + displayName: Start xvfb + condition: and(succeeded(), eq(variables['Agent.OS'], 'Linux')) + +- bash: | + echo ">>> Compile vscode-test" + yarn && yarn compile + echo ">>> Compiled vscode-test" + cd sample + echo ">>> Run sample integration test" + yarn && yarn compile && yarn test + displayName: Run Tests + env: + DISPLAY: ':99.0'