From 7ca519b898622e55cb298611b9eab92d9ab82ca7 Mon Sep 17 00:00:00 2001 From: Rinish Sam <36656347+CaptainIRS@users.noreply.github.com> Date: Wed, 22 Jun 2022 00:20:59 +0530 Subject: [PATCH] Disable unit and integration tests in Azure Pipelines (#1382) * Disable unit and integration tests in Azure Pipelines Signed-off-by: CaptainIRS <36656347+CaptainIRS@users.noreply.github.com> * Remove publish.yml (committed by mistake) Signed-off-by: CaptainIRS <36656347+CaptainIRS@users.noreply.github.com> --- azure-pipelines.yml | 123 +------------------------------------------- 1 file changed, 1 insertion(+), 122 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index c7c8f78d9..3c288f1d6 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -17,130 +17,9 @@ variables: value: 14.x stages: - - stage: UnitTests - displayName: Run unit tests - jobs: - - job: unitTests - displayName: "Base build and unit tests" - strategy: - matrix: - Node14: - NODEVER: 14.x - Node16: - NODEVER: 16.x - steps: - - task: NodeTool@0 - inputs: - versionSpec: "$(NODEVER)" - displayName: "Install Node.js" - - script: | - ./scripts/check-package-names.sh - displayName: "Check correct usage of Caliper package names" - - script: | - npm install - npm run bootstrap - displayName: "Install project dependencies" - - script: | - ./packages/caliper-publish/publish.js version check - displayName: "Check the version consistency of subpackages" - - script: | - npm test - displayName: "Run unit tests" - - - stage: IntegrationTests - displayName: Run integration tests - condition: and(succeeded(), eq(variables['Build.Reason'], 'PullRequest')) - dependsOn: UnitTests - jobs: - - job: fabricIntegration - displayName: "Fabric Integration Test" - strategy: - matrix: - Node14: - NODEVER: 14.x - Node16: - NODEVER: 16.x - variables: { BENCHMARK: fabric } - steps: - - task: NodeTool@0 - inputs: - versionSpec: "$(NODEVER)" - displayName: "Install Node.js" - - script: | - .build/benchmark-integration-test-direct.sh - - - job: ethereumIntegration - displayName: "Ethereum Integration Test" - strategy: - matrix: - Node14: - NODEVER: 14.x - Node16: - NODEVER: 16.x - variables: { BENCHMARK: ethereum } - steps: - - task: NodeTool@0 - inputs: - versionSpec: "$(NODEVER)" - displayName: "Install Node.js" - - script: | - .build/benchmark-integration-test-direct.sh - - - job: besuIntegration - displayName: "Besu Integration Test" - strategy: - matrix: - Node14: - NODEVER: 14.x - Node16: - NODEVER: 16.x - variables: { BENCHMARK: besu } - steps: - - task: NodeTool@0 - inputs: - versionSpec: "$(NODEVER)" - displayName: "Install Node.js" - - script: | - .build/benchmark-integration-test-direct.sh - - - job: fiscoIntegration - displayName: "FISCO BCOS Integration Test" - strategy: - matrix: - Node14: - NODEVER: 14.x - Node16: - NODEVER: 16.x - variables: { BENCHMARK: fisco-bcos } - steps: - - task: NodeTool@0 - inputs: - versionSpec: "$(NODEVER)" - displayName: "Install Node.js" - - script: | - .build/benchmark-integration-test-direct.sh - - - job: generatorIntegration - displayName: "Generator Integration Test" - strategy: - matrix: - Node14: - NODEVER: 14.x - Node16: - NODEVER: 16.x - variables: { BENCHMARK: generator } - steps: - - task: NodeTool@0 - inputs: - versionSpec: "$(NODEVER)" - displayName: "Install Node.js" - - script: | - .build/benchmark-integration-test-direct.sh - - stage: Publish displayName: Publish Caliper - # having a blind succeeded here will not work if a preceding stage was skipped - condition: and(not(failed('UnitTests')), eq(variables['Build.Reason'], 'IndividualCI')) + condition: eq(variables['Build.Reason'], 'IndividualCI') jobs: - job: PublishCaliper displayName: "Publish Caliper to NPM and DockerHub"