From 89d3a1989fd63640bac73280f1d6acf68dc7a970 Mon Sep 17 00:00:00 2001 From: "azure-pipelines[bot]" Date: Fri, 14 Sep 2018 16:17:28 +0100 Subject: [PATCH] chore(ci): Set up CI with Azure Pipelines --- .gitattributes | 2 ++ azure-pipelines.yml | 84 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 86 insertions(+) create mode 100644 .gitattributes create mode 100644 azure-pipelines.yml diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 00000000000..1632a73dd4c --- /dev/null +++ b/.gitattributes @@ -0,0 +1,2 @@ +*.js text eol=lf +*.ts text eol=lf diff --git a/azure-pipelines.yml b/azure-pipelines.yml new file mode 100644 index 00000000000..aeb8ca14859 --- /dev/null +++ b/azure-pipelines.yml @@ -0,0 +1,84 @@ +jobs: + - job: linux + pool: + vmImage: ubuntu-16.04 + strategy: + maxParallel: 3 + matrix: + node-10: + node_version: ^10.10.0 + node-8: + node_version: ^8.12.0 + node-6: + node_version: ^6.14.4 + steps: + - task: NodeTool@0 + displayName: "Install Node.js" + inputs: + versionSpec: $(node_version) + - script: | + npm install -g npm@latest + displayName: "Install npm" + - script: | + npm ci + displayName: "Install dependencies" + - script: | + ./node_modules/.bin/lerna bootstrap + displayName: "Lerna bootstrap" + - script: | + npm test + displayName: "Run tests" + - job: macos + pool: + vmImage: "macOS 10.13" + strategy: + maxParallel: 3 + matrix: + node-10: + node_version: ^10.10.0 + node-8: + node_version: ^8.12.0 + steps: + - task: NodeTool@0 + displayName: "Install Node.js" + inputs: + versionSpec: $(node_version) + - script: | + npm install -g npm@latest + displayName: "Install npm" + - script: | + npm ci + displayName: "Install dependencies" + - script: | + ./node_modules/.bin/lerna bootstrap + displayName: "Lerna bootstrap" + - script: | + npm test + displayName: "Run tests" + - job: windows + pool: + vmImage: vs2017-win2016 + strategy: + maxParallel: 3 + matrix: + node-8: + node_version: ^8.12.0 + node-6: + node_version: ^6.14.4 + steps: + - task: NodeTool@0 + displayName: "Install Node.js" + inputs: + versionSpec: $(node_version) + - script: | + npm install -g npm@latest + displayName: "Install npm" + - script: | + npm ci + displayName: "Install dependencies" + - script: | + ./node_modules/.bin/lerna.cmd bootstrap + displayName: "Lerna bootstrap" + - script: | + npm test + displayName: "Run tests"