From 73a538e98bfa28184852270ad24dfe0d69d3fb62 Mon Sep 17 00:00:00 2001 From: Ka-wai Wong Date: Fri, 15 Feb 2019 15:37:46 -0800 Subject: [PATCH] Set up CI with Azure Pipelines --- azure-pipelines.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 azure-pipelines.yml diff --git a/azure-pipelines.yml b/azure-pipelines.yml new file mode 100644 index 0000000..c635bac --- /dev/null +++ b/azure-pipelines.yml @@ -0,0 +1,32 @@ +# Node.js +# Build a general Node.js project with npm. +# Add steps that analyze code, save build artifacts, deploy, and more: +# https://docs.microsoft.com/azure/devops/pipelines/languages/javascript + +pr: +- master + +pool: + vmImage: 'Ubuntu-16.04' + +steps: +- task: NodeTool@0 + inputs: + versionSpec: '8.x' + displayName: 'Install Node.js' + +- script: | + npm install + displayName: 'Install npm dependencies' + +- script: | + npm run lint + displayName: 'Linting code' + +- script: | + npm run test + displayName: 'Running unit tests with coverage statistics' + +- script: | + npm run build:prod + displayName: 'Building the extension'