From a55b0d0c8b3f7295a27621aed221214ce2ed4638 Mon Sep 17 00:00:00 2001 From: alzimmermsft <48699787+alzimmermsft@users.noreply.github.com> Date: Fri, 13 Nov 2020 16:10:32 -0800 Subject: [PATCH 1/2] Add From Source test run to live tests --- .../templates/jobs/archetype-sdk-tests.yml | 26 ++++++++++++++++--- 1 file changed, 23 insertions(+), 3 deletions(-) diff --git a/eng/pipelines/templates/jobs/archetype-sdk-tests.yml b/eng/pipelines/templates/jobs/archetype-sdk-tests.yml index cbca4cef991fd..8b3032055afe3 100644 --- a/eng/pipelines/templates/jobs/archetype-sdk-tests.yml +++ b/eng/pipelines/templates/jobs/archetype-sdk-tests.yml @@ -103,16 +103,36 @@ jobs: parameters: Artifacts: ${{parameters.Artifacts}} AdditionalModules: ${{parameters.AdditionalModules}} + + - task: UsePythonVersion@0 + displayName: 'Use Python 3.6' + inputs: + versionSpec: '3.6' + condition: and(succeeded(), eq(variables['TestFromSource'],'true')) + + - task: PythonScript@0 + displayName: 'Set versions for source build' + inputs: + scriptPath: 'eng/versioning/set_versions.py' + arguments: '--build-type client --pst' + condition: and(succeeded(), eq(variables['TestFromSource'],'true')) + + - task: PythonScript@0 + displayName: 'Update versions for source build' + inputs: + scriptPath: 'eng/versioning/update_versions.py' + arguments: '--update-type library --build-type client --sr' + condition: and(succeeded(), eq(variables['ShouldRunSourceTests'],'true')) - task: Maven@3 - displayName: 'Build and Install, JDK Version: $(JavaBuildVersion)' + displayName: 'Build and Install, JDK Version: $(JavaTestVersion)' inputs: mavenPomFile: pom.xml goals: 'install' - options: '$(DefaultOptions) -DskipTests -Dgpg.skip -Dmaven.javadoc.skip=true -Dcheckstyle.skip=true -Dspotbugs.skip=true -Drevapi.skip=true -pl $(ProjectList) -am' + options: '$(DefaultOptions) -T 1C -DskipTests -Dgpg.skip -Dmaven.javadoc.skip=true -Dcheckstyle.skip=true -Dspotbugs.skip=true -Drevapi.skip=true -pl $(ProjectList) -am' mavenOptions: '$(MemoryOptions) $(LoggingOptions)' javaHomeOption: 'JDKVersion' - jdkVersionOption: $(JavaBuildVersion) + jdkVersionOption: $(JavaTestVersion) jdkArchitectureOption: 'x64' publishJUnitResults: false From c7ce1f1f751488925e1b1fe7a2f9981acfad2f00 Mon Sep 17 00:00:00 2001 From: alzimmermsft <48699787+alzimmermsft@users.noreply.github.com> Date: Fri, 13 Nov 2020 16:12:49 -0800 Subject: [PATCH 2/2] Add From Source to matrix --- eng/pipelines/templates/jobs/archetype-sdk-tests.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/eng/pipelines/templates/jobs/archetype-sdk-tests.yml b/eng/pipelines/templates/jobs/archetype-sdk-tests.yml index 8b3032055afe3..84f9aec2b641d 100644 --- a/eng/pipelines/templates/jobs/archetype-sdk-tests.yml +++ b/eng/pipelines/templates/jobs/archetype-sdk-tests.yml @@ -35,6 +35,12 @@ parameters: JavaTestVersion: '1.11' DisplayName: 'Windows - Java 11' AZURE_TEST_HTTP_CLIENTS: okhttp + Linux From Source - Java 11: + OSVmImage: 'ubuntu-18.04' + JavaTestVersion: '1.11' + RunTitle: 'From Source: Linux on Java 1.11' + AZURE_TEST_HTTP_CLIENTS: netty + TestFromSource: true PreRunSteps: [] PostRunSteps: [] TestName: LiveTest