From 3a97dbecde99ad7c5c784ca88c6830b97fc14464 Mon Sep 17 00:00:00 2001 From: Daniel Imms Date: Mon, 10 Sep 2018 23:01:18 -0700 Subject: [PATCH] Add more platforms, build out script --- azure-pipelines.yml | 75 ++++++++++++++++++++++++++++++++++++++------- 1 file changed, 64 insertions(+), 11 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 722a3631..f9d41638 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -3,16 +3,69 @@ # Add steps that analyze code, save build artifacts, deploy, and more: # https://docs.microsoft.com/vsts/pipelines/languages/javascript -pool: - vmImage: 'Ubuntu 16.04' +jobs: +- job: Linux + pool: + vmImage: 'ubuntu-16.04' + steps: + - task: NodeTool@0 + inputs: + versionSpec: '8.x' + displayName: 'Install Node.js' + - script: | + yarn install + displayName: 'Install yarn dependencies' + - script: | + yarn tsc + displayName: 'Build' + - script: | + yarn mocha + displayName: 'Test' + - script: | + yarn lint + displayName: 'Lint' + - script: | + yarn test-coverage + displayName: 'Generate and publish coverage' -steps: -- task: NodeTool@0 - inputs: - versionSpec: '8.x' - displayName: 'Install Node.js' +- job: macOS + pool: + vmImage: 'xcode9-macos10.13' + steps: + - task: NodeTool@0 + inputs: + versionSpec: '8.x' + displayName: 'Install Node.js' + - script: | + yarn install + displayName: 'Install yarn dependencies' + - script: | + yarn tsc + displayName: 'Build' + - script: | + yarn mocha + displayName: 'Test' + - script: | + yarn lint + displayName: 'Lint' -- script: | - npm install - npm run build - displayName: 'npm install and build' +- job: Windows + pool: + vmImage: 'vs2017-win2016' + steps: + - task: NodeTool@0 + inputs: + versionSpec: '8.x' + displayName: 'Install Node.js' + - script: | + yarn install + displayName: 'Install yarn dependencies' + - script: | + yarn tsc + displayName: 'Build' + - script: | + yarn mocha + displayName: 'Test' + - script: | + yarn lint + displayName: 'Lint'