From c3b462571e072f79faac14d51fbc4fc002b584fe Mon Sep 17 00:00:00 2001 From: Wei Wei Date: Thu, 1 Aug 2024 08:13:30 +0000 Subject: [PATCH] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 611 -------------------------------------------- 1 file changed, 611 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 8e192fa02..c4379961d 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -11,543 +11,6 @@ trigger: - dev jobs: - - job: blobtestubuntu20_04 - displayName: Blob Test Linux Ubuntu 20.04 LTS - pool: - vmImage: "ubuntu-20.04" - strategy: - matrix: - node_20_x: - node_version: 20.x - node_14_x: - node_version: 14.x - steps: - - task: NodeTool@0 - inputs: - versionSpec: "$(node_version)" - displayName: "Install Node.js" - - - script: | - npm ci --legacy-peer-deps - workingDirectory: "./" - displayName: "npm ci --legacy-peer-deps" - - - script: | - npm run test:blob - workingDirectory: "./" - displayName: "npm run test:blob" - env: {} - - - script: | - npm run test:blob:in-memory - workingDirectory: "./" - displayName: "npm run test:blob:in-memory" - env: {} - - - job: blobtestubuntu22_04 - displayName: Blob Test Linux Ubuntu 22.04 - pool: - vmImage: "ubuntu-latest" - strategy: - matrix: - node_16_x: - node_version: 16.x - node_18_x: - node_version: 18.x - steps: - - task: NodeTool@0 - inputs: - versionSpec: "$(node_version)" - displayName: "Install Node.js" - - - script: | - npm ci --legacy-peer-deps - workingDirectory: "./" - displayName: "npm ci --legacy-peer-deps" - - - script: | - npm run test:blob - workingDirectory: "./" - displayName: "npm run test:blob" - env: {} - - - script: | - npm run test:blob:in-memory - workingDirectory: "./" - displayName: "npm run test:blob:in-memory" - env: {} - - - job: blobtestwin - displayName: Blob Test Windows - pool: - vmImage: "windows-latest" - strategy: - matrix: - node_14_x: - node_version: 14.x - node_16_x: - node_version: 16.x - steps: - - task: NodeTool@0 - inputs: - versionSpec: "$(node_version)" - displayName: "Install Node.js" - - - script: | - npm ci --legacy-peer-deps - workingDirectory: "./" - displayName: "npm ci --legacy-peer-deps" - - - script: | - npm run test:blob - workingDirectory: "./" - displayName: "npm run test:blob" - env: {} - - - script: | - npm run test:blob:in-memory - workingDirectory: "./" - displayName: "npm run test:blob:in-memory" - env: {} - - - job: blobtestmac - displayName: Blob Test Mac - pool: - vmImage: "macOS-latest" - strategy: - matrix: - node_14_x: - node_version: 14.x - node_16_x: - node_version: 16.x - steps: - - task: NodeTool@0 - inputs: - versionSpec: "$(node_version)" - displayName: "Install Node.js" - - - script: | - npm ci --legacy-peer-deps - workingDirectory: "./" - displayName: "npm ci --legacy-peer-deps" - - - script: | - npm run test:blob - workingDirectory: "./" - displayName: "npm run test:blob" - env: {} - - - script: | - npm run test:blob:in-memory - workingDirectory: "./" - displayName: "npm run test:blob:in-memory" - env: {} - - - job: blobtestmysql - displayName: Blob Test Mysql - pool: - vmImage: "ubuntu-latest" - strategy: - matrix: - node_14_x: - node_version: 14.x - node_16_x: - node_version: 16.x - steps: - - task: NodeTool@0 - inputs: - versionSpec: "$(node_version)" - displayName: "Install Node.js" - - - script: | - npm ci --legacy-peer-deps - workingDirectory: "./" - displayName: "npm ci --legacy-peer-deps" - - - script: | - docker run --name mysql -p 13306:3306 -e MYSQL_ROOT_PASSWORD=my-secret-pw -d mysql - sleep 60 - docker exec mysql mysql -u root -pmy-secret-pw -e "GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' WITH GRANT OPTION; FLUSH PRIVILEGES;" - docker exec mysql mysql -u root -pmy-secret-pw -e "create database azurite_blob_test;" - workingDirectory: "./" - displayName: "Setup mysql docker instance" - - - script: | - npm run test:blob:sql:ci - workingDirectory: "./" - displayName: "npm run test:blob" - env: {} - - - job: queuetestlinux - displayName: Queue Test Linux - pool: - vmImage: "ubuntu-latest" - strategy: - matrix: - node_14_x: - node_version: 14.x - node_16_x: - node_version: 16.x - steps: - - task: NodeTool@0 - inputs: - versionSpec: "$(node_version)" - displayName: "Install Node.js" - - - script: | - npm ci --legacy-peer-deps - workingDirectory: "./" - displayName: "npm ci --legacy-peer-deps" - - - script: | - npm run test:queue - workingDirectory: "./" - displayName: "npm run test:queue" - env: {} - - - script: | - npm run test:queue:in-memory - workingDirectory: "./" - displayName: "npm run test:queue:in-memory" - env: {} - - - job: queuetestwin - displayName: Queue Test Windows - pool: - vmImage: "windows-latest" - strategy: - matrix: - node_16_x: - node_version: 16.x - node_18_x: - node_version: 18.x - steps: - - task: NodeTool@0 - inputs: - versionSpec: "$(node_version)" - displayName: "Install Node.js" - - - script: | - npm ci --legacy-peer-deps - workingDirectory: "./" - displayName: "npm ci --legacy-peer-deps" - - - script: | - npm run test:queue - workingDirectory: "./" - displayName: "npm run test:queue" - env: {} - - - script: | - npm run test:queue:in-memory - workingDirectory: "./" - displayName: "npm run test:queue:in-memory" - env: {} - - - job: queuetestmac - displayName: Queue Test Mac - pool: - vmImage: "macOS-latest" - strategy: - matrix: - node_14_x: - node_version: 14.x - node_16_x: - node_version: 16.x - steps: - - task: NodeTool@0 - inputs: - versionSpec: "$(node_version)" - displayName: "Install Node.js" - - - script: | - npm ci --legacy-peer-deps - workingDirectory: "./" - displayName: "npm ci --legacy-peer-deps" - - - script: | - npm run test:queue - workingDirectory: "./" - displayName: "npm run test:queue" - env: {} - - - script: | - npm run test:queue:in-memory - workingDirectory: "./" - displayName: "npm run test:queue:in-memory" - env: {} - - - job: tabletestlinux - displayName: Table Test Linux - pool: - vmImage: "ubuntu-latest" - strategy: - matrix: - # Table tests no longer support older node versions - node_14_x: - node_version: 14.x - node_16_x: - node_version: 16.x - steps: - - task: NodeTool@0 - inputs: - versionSpec: "$(node_version)" - displayName: "Install Node.js" - - - script: | - npm ci --legacy-peer-deps - workingDirectory: "./" - displayName: "npm ci --legacy-peer-deps" - - - script: | - npm run test:table - workingDirectory: "./" - displayName: "npm run test:table" - env: {} - - - script: | - npm run test:table:in-memory - workingDirectory: "./" - displayName: "npm run test:table:in-memory" - env: {} - - - job: tabletestwin - displayName: Table Test Windows - pool: - vmImage: "windows-latest" - strategy: - matrix: - # Table tests no longer support older node versions - node_14_x: - node_version: 14.x - node_16_x: - node_version: 16.x - steps: - - task: NodeTool@0 - inputs: - versionSpec: "$(node_version)" - displayName: "Install Node.js" - - - script: | - npm ci --legacy-peer-deps - workingDirectory: "./" - displayName: "npm ci --legacy-peer-deps" - - - script: | - npm run test:table - workingDirectory: "./" - displayName: "npm run test:table" - env: {} - - - script: | - npm run test:table:in-memory - workingDirectory: "./" - displayName: "npm run test:table:in-memory" - env: {} - - - job: tabletestmac - displayName: Table Test Mac - pool: - vmImage: "macOS-latest" - strategy: - matrix: - # Table tests no longer support older node versions - node_16_x: - node_version: 16.x - node_18_x: - node_version: 18.x - steps: - - task: NodeTool@0 - inputs: - versionSpec: "$(node_version)" - displayName: "Install Node.js" - - - script: | - npm ci --legacy-peer-deps - workingDirectory: "./" - displayName: "npm ci --legacy-peer-deps" - - - script: | - npm run test:table - workingDirectory: "./" - displayName: "npm run test:table" - env: {} - - - script: | - npm run test:table:in-memory - workingDirectory: "./" - displayName: "npm run test:table:in-memory" - env: {} - - - job: azuritenodejslinux - displayName: Azurite Linux - pool: - vmImage: "ubuntu-latest" - strategy: - matrix: - # Table tests no longer support older node versions - # skip node 14 Azurite install test, since it has issue with new npm, which is not azurite issue. - # Track with https://github.com/Azure/Azurite/issues/1550. Will add node 14 back later when the issue resolved. - #node_14_x: - # node_version: 14.x - node_16_x: - node_version: 16.x - steps: - - task: NodeTool@0 - inputs: - versionSpec: "$(node_version)" - displayName: "Install Node.js" - - - script: | - npm ci --legacy-peer-deps - workingDirectory: "./" - displayName: "npm ci --legacy-peer-deps" - - - script: | - npm run lint - workingDirectory: "./" - displayName: "tslint" - - - script: | - npm run validate:npmpack:linux_mac - workingDirectory: "./" - displayName: "Validate npm package installation" - - - script: | - npm run vscode:pack - workingDirectory: "./" - displayName: "Validate Visual Studio Code extension package generation" - - - script: | - sudo npm uninstall -g azurite - npm run build - npm install --location=global - azurite -v - azurite-blob -v - azurite-queue -v - azurite-table -v - workingDirectory: "./" - displayName: "Validate npm global installation from GitHub code base" - - - job: azuritenodejswin - displayName: Azurite Windows - pool: - vmImage: "windows-latest" - strategy: - matrix: - # Table tests no longer support older node versions - node_14_x: - node_version: 14.x - node_16_x: - node_version: 16.x - steps: - - task: NodeTool@0 - inputs: - versionSpec: "$(node_version)" - displayName: "Install Node.js" - - - script: | - npm ci --legacy-peer-deps - workingDirectory: "./" - displayName: "npm ci --legacy-peer-deps" - - - script: | - npm run lint - workingDirectory: "./" - displayName: "tslint" - - - script: | - npm run validate:npmpack:win - workingDirectory: "./" - displayName: "Validate npm package installation" - - - script: | - npm run vscode:pack - workingDirectory: "./" - displayName: "Validate Visual Studio Code extension package generation" - - - script: | - npm uninstall -g azurite - npm run build - npm install -g - azurite -v - azurite-blob -v - azurite-queue -v - azurite-table -v - workingDirectory: "./" - displayName: "Validate npm global installation from GitHub code base" - - - job: azuritenodejsmac - displayName: Azurite Mac - pool: - vmImage: "macOS-latest" - strategy: - matrix: - # Table tests no longer support node_8_x - node_14_x: - node_version: 14.x - node_16_x: - node_version: 16.x - steps: - - task: NodeTool@0 - inputs: - versionSpec: "$(node_version)" - displayName: "Install Node.js" - - - script: | - npm ci --legacy-peer-deps - workingDirectory: "./" - displayName: "npm ci --legacy-peer-deps" - - - script: | - npm run lint - workingDirectory: "./" - displayName: "tslint" - - - script: | - npm run validate:npmpack:linux_mac - workingDirectory: "./" - displayName: "Validate npm package installation" - - - script: | - npm run vscode:pack - workingDirectory: "./" - displayName: "Validate Visual Studio Code extension package generation" - - - script: | - sudo npm uninstall -g azurite - npm run build - sudo npm install -g - azurite -v - azurite-blob -v - azurite-queue -v - azurite-table -v - workingDirectory: "./" - displayName: "Validate npm global installation from GitHub code base" - - - job: docker - displayName: Docker Build - pool: - vmImage: "ubuntu-latest" - steps: - - script: | - npm ci --legacy-peer-deps - workingDirectory: "./" - displayName: "npm ci --legacy-peer-deps" - - - script: | - npm run docker:build - workingDirectory: "./" - displayName: "Build docker image" - - - script: | - docker run xstoreazurite.azurecr.io/public/azure-storage/azurite:latest azurite -v - docker run xstoreazurite.azurecr.io/public/azure-storage/azurite:latest azurite-blob -v - docker run xstoreazurite.azurecr.io/public/azure-storage/azurite:latest azurite-queue -v - docker run xstoreazurite.azurecr.io/public/azure-storage/azurite:latest azurite-table -v - workingDirectory: "./" - displayName: "Validate docker image" - - job: governance displayName: Component Governance Component Detection pool: @@ -558,77 +21,3 @@ jobs: scanType: "Register" verbosity: "Verbose" alertWarningLevel: "High" - - - job: exetest - displayName: .exe Test Windows - pool: - vmImage: "windows-latest" - strategy: - matrix: - # one of the node modules use a try/catch syntax not supported by node 8 - # node_8_x: - # node_version: 8.x - # our .exe build program is currently incompatible with node 10 - # node_10_x: - # node_version: 10.x - node_18_x: - node_version: 18.x - steps: - - task: NodeTool@0 - inputs: - versionSpec: "$(node_version)" - displayName: "Install Node.js" - - - script: | - npm ci --legacy-peer-deps - workingDirectory: "./" - displayName: "npm ci --legacy-peer-deps" - - - script: | - npm run build:exe - workingDirectory: "./" - displayName: "npm run build:exe" - env: {} - - - script: | - npm run test:exe - workingDirectory: "./" - displayName: "npm run test:exe" - env: {} - - - job: linuxTest - displayName: binary Test Linux - pool: - vmImage: "ubuntu-latest" - strategy: - matrix: - # one of the node modules use a try/catch syntax not supported by node 8 - # node_8_x: - # node_version: 8.x - # our .exe build program is currently incompatible with node 10 - # node_10_x: - # node_version: 10.x - node_20_x: - node_version: 20.x - steps: - - task: NodeTool@0 - inputs: - versionSpec: "$(node_version)" - displayName: "Install Node.js" - - - script: | - npm ci --legacy-peer-deps - workingDirectory: "./" - displayName: "npm ci --legacy-peer-deps" - - - script: | - npm run build:linux - workingDirectory: "./" - displayName: "npm run build:linux" - env: {} - - - script: | - npm run test:linux - workingDirectory: "./" - displayName: "npm run test:linux" - env: {}