From 9c45e1bb216a034de7a158d017ff0f33eb667d82 Mon Sep 17 00:00:00 2001 From: Dmitry Maslennikov Date: Tue, 14 May 2019 22:18:41 +0300 Subject: [PATCH] azure pipeline --- build.yml | 71 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 build.yml diff --git a/build.yml b/build.yml new file mode 100644 index 00000000..8ce7125a --- /dev/null +++ b/build.yml @@ -0,0 +1,71 @@ +jobs: + - job: Windows + pool: + name: Hosted VS2017 + demands: npm + steps: + - task: NodeTool@0 + displayName: 'Use Node 8.x' + inputs: + versionSpec: 8.x + - task: Npm@1 + displayName: 'Install dependencies' + inputs: + verbose: false + - task: Npm@1 + displayName: 'Compile sources' + inputs: + command: custom + verbose: false + customCommand: 'run compile' + - script: 'node node_modules/vscode/bin/test' + displayName: 'Run tests' + - job: macOS + pool: + name: Hosted macOS + demands: npm + steps: + - task: NodeTool@0 + displayName: 'Use Node 8.x' + inputs: + versionSpec: 8.x + - task: Npm@1 + displayName: 'Install dependencies' + inputs: + verbose: false + - task: Npm@1 + displayName: 'Compile sources' + inputs: + command: custom + verbose: false + customCommand: 'run compile' + - script: 'node node_modules/vscode/bin/test' + displayName: 'Run tests' + - job: Linux + pool: + name: Hosted Ubuntu 1604 + demands: npm + steps: + - task: NodeTool@0 + displayName: 'Use Node 8.x' + inputs: + versionSpec: 8.x + - task: Npm@1 + displayName: 'Install dependencies' + inputs: + verbose: false + - task: Npm@1 + displayName: 'Compile sources' + inputs: + command: custom + verbose: false + customCommand: 'run compile' + - script: | + set -e + /usr/bin/Xvfb :10 -ac >> /tmp/Xvfb.out 2>&1 & + disown -ar + displayName: 'Start xvfb' + - script: 'node node_modules/vscode/bin/test' + displayName: 'Run tests' + env: + DISPLAY: :10