Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Java Local Tests to Proxy Nightly Integration Tests #6093

Merged
merged 14 commits into from
May 4, 2023
61 changes: 60 additions & 1 deletion tools/test-proxy/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,8 @@ stages:
jobs:
- job: Test_JS_Utils

displayName: Invoke JS Utils CI Tests

strategy:
matrix:
Windows:
Expand Down Expand Up @@ -169,6 +171,8 @@ stages:

- job: Test_Python_Tables

displayName: Run Python Tables CI Tests

strategy:
matrix:
Windows:
Expand Down Expand Up @@ -216,4 +220,59 @@ stages:
workingDirectory: $(CLONE_LOCATION)/sdk/tables/azure-data-tables/
env:
PROXY_URL: "http://localhost:5000"
PROXY_MANUAL_START: true
PROXY_MANUAL_START: true

- job: Test_Java_Core

displayName: Run Java Core Local Tests

strategy:
matrix:
Windows:
Pool: 'azsdk-pool-mms-win-2022-general'
OS: 'Windows'
Linux:
Pool: azsdk-pool-mms-ubuntu-2204-general
OS: 'Linux'
Mac:
Pool: 'Azure Pipelines'
OS: 'Mac'

pool:
name: $(Pool)

variables:
REPO: "Azure/azure-sdk-for-java"
CLONE_LOCATION: "$(Agent.BuildDirectory)/java_repo"

steps:

- template: /eng/pipelines/templates/steps/install-dotnet.yml

- template: /eng/pipelines/templates/steps/use-python-version.yml
parameters:
versionSpec: '3.9'

- pwsh: |
git clone https://github.com/$(REPO) $(CLONE_LOCATION) --depth 1
displayName: Clone Repo

- pwsh: |
Write-Host 'mvn install -f eng/code-quality-reports/pom.xml -DskipTests=true "-Dmaven.javadoc.skip=true" -DskipCheckStyle=true'
mvn install -f eng/code-quality-reports/pom.xml -DskipTests=true "-Dmaven.javadoc.skip=true" -DskipCheckStyle=true
Write-Host 'mvn install -f sdk/core/azure-json/pom.xml -DskipTests=true "-Dmaven.javadoc.skip=true" -DskipCheckStyle=true'
mvn install -f sdk/core/azure-json/pom.xml -DskipTests=true "-Dmaven.javadoc.skip=true" -DskipCheckStyle=true
Write-Host 'mvn install -f sdk/core/azure-core/pom.xml -DskipTests=true "-Dmaven.javadoc.skip=true" -DskipCheckStyle=true'
mvn install -f sdk/core/azure-core/pom.xml -DskipTests=true "-Dmaven.javadoc.skip=true" -DskipCheckStyle=true
Write-Host 'mvn install -f sdk/core/azure-core-test/pom.xml -DskipTests=true "-Dmaven.javadoc.skip=true" -DskipCheckStyle=true'
mvn install -f sdk/core/azure-core-test/pom.xml -DskipTests=true "-Dmaven.javadoc.skip=true" -DskipCheckStyle=true
displayName: 'Install azure-core-test'
workingDirectory: $(CLONE_LOCATION)

- pwsh: |
# To run java in 'local' mode, we need to ensure that the natively set CI variable $env:TF_BUILD
# is not populated. Given it's auto-populated at step init by devops, we do it inline here.
$env:TF_BUILD=""
mvn surefire:test -f sdk/core/azure-core-test/pom.xml
displayName: 'Invoke Tests'
workingDirectory: $(CLONE_LOCATION)