From 832a3f52fdf71155383ebbf35fd354fbb5e93e71 Mon Sep 17 00:00:00 2001 From: nishant Date: Sat, 13 Mar 2021 19:32:47 +0530 Subject: [PATCH] Keep single build pipeline. --- azure-pipelines.yml | 54 ++++++++++++++++++++++++++++++++++++++++ core/azure-pipelines.yml | 25 ------------------- core/build.yml | 15 +++++++++++ 3 files changed, 69 insertions(+), 25 deletions(-) create mode 100644 azure-pipelines.yml delete mode 100644 core/azure-pipelines.yml create mode 100644 core/build.yml diff --git a/azure-pipelines.yml b/azure-pipelines.yml new file mode 100644 index 0000000..b13bb10 --- /dev/null +++ b/azure-pipelines.yml @@ -0,0 +1,54 @@ +trigger: +- master + +pr: +- master + +stages: + - stage: BuildCore + displayName: "core/build.yml" + jobs: + - job: BuildCore + displayName: "Build grpc-devtool" + timeoutInMinutes: 10 + pool: + vmImage: 'ubuntu-18.04' + steps: + - template: core/build.yml + + - stage: BuildUi + displayName: "ui/build.yml" + jobs: + - job: BuilUI + displayName: "Webpack build" + timeoutInMinutes: 10 + pool: + vmImage: 'ubuntu-18.04' + steps: + - template: ui/build.yml + + - stage: BuildApp + displayName: "app/build.yml" + dependsOn: "BuildUi" + jobs: + - job: MacOs + displayName: "MacOs Build - Mojave(macOS-10.14)" + timeoutInMinutes: 10 + pool: + vmImage: 'macOS-10.14' # Mojave(macOS-10.14) over Catalina(macOS-10.15) + steps: + - template: app/build.yml + parameters: + buildName: "MacOs" + extension: ".zip" + + - job: Windows + displayName: "Windows Build - Windows Server(windows-2019)" + timeoutInMinutes: 10 + pool: + vmImage: 'windows-2019' + steps: + - template: app/build.yml + parameters: + buildName: "Windows" + extension: "Setup.exe" # Ignore other files like standalone app/squirrel.exe diff --git a/core/azure-pipelines.yml b/core/azure-pipelines.yml deleted file mode 100644 index 72170bd..0000000 --- a/core/azure-pipelines.yml +++ /dev/null @@ -1,25 +0,0 @@ -trigger: -- master - -pr: -- master - -pool: - vmImage: 'ubuntu-latest' - -steps: -- task: NodeTool@0 - inputs: - versionSpec: '10.x' - displayName: 'Install Node.js' - -- script: | - cd core - npm install - displayName: 'npm install' - - -- script: | - cd core - npm test - displayName: 'npm test' diff --git a/core/build.yml b/core/build.yml new file mode 100644 index 0000000..18462c2 --- /dev/null +++ b/core/build.yml @@ -0,0 +1,15 @@ +steps: + - task: NodeTool@0 + inputs: + versionSpec: '10.x' + displayName: 'Install Node.js' + + - script: | + cd core + npm install + displayName: 'npm install' + + - script: | + cd core + npm test + displayName: 'npm test'