Skip to content

Commit

Permalink
Add From Source Test Run to Live Tests (#17584)
Browse files Browse the repository at this point in the history
* Add From Source test run to live tests

* Add From Source to matrix
  • Loading branch information
alzimmermsft authored Nov 19, 2020
1 parent d267e4a commit b31839d
Showing 1 changed file with 29 additions and 3 deletions.
32 changes: 29 additions & 3 deletions eng/pipelines/templates/jobs/archetype-sdk-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -103,16 +109,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

Expand Down

0 comments on commit b31839d

Please sign in to comment.