---
trigger: none

jobs:
  - job: LinuxJDK11
    pool:
      vmImage: 'Ubuntu 16.04'
    steps:
      - task: Gradle@2
        env:
          CRATE_TESTS_SQL_REQUEST_TIMEOUT: 20
        inputs:
          workingDirectory: ''
          gradleWrapperFile: 'gradlew'
          gradleOptions: '-Xmx2048m'
          javaHomeOption: 'JDKVersion'
          jdkVersionOption: '1.11'
          jdkArchitectureOption: 'x64'
          publishJUnitResults: true
          testResultsFiles: '**/TEST-*.xml'
          tasks: ':sql:test'

  - job: Windows
    pool:
      vmImage: 'VS2017-Win2016'
    steps:
      - task: Gradle@2
        env:
          CRATE_TESTS_SQL_REQUEST_TIMEOUT: 20
        inputs:
          workingDirectory: ''
          gradleWrapperFile: 'gradlew'
          gradleOptions: '-Xmx2048m'
          javaHomeOption: 'JDKVersion'
          jdkVersionOption: '1.11'
          jdkArchitectureOption: 'x64'
          publishJUnitResults: true
          testResultsFiles: '**/TEST-*.xml'
          tasks: ':sql:test'

---
trigger: none

jobs:
  - job: LinuxJDK11
    pool:
      vmImage: 'ubuntu-18.04'
    steps:
      - task: Gradle@2
        env:
          CRATE_TESTS_SQL_REQUEST_TIMEOUT: 20
        inputs:
          workingDirectory: ''
          gradleWrapperFile: 'gradlew'
          gradleOptions: '-Xmx2048m'
          javaHomeOption: 'JDKVersion'
          jdkVersionOption: '1.11'
          jdkArchitectureOption: 'x64'
          publishJUnitResults: true
          testResultsFiles: '**/TEST-*.xml'
          tasks: ':sql:test'

  - job: Windows
    pool:
      vmImage: 'windows-2019'
    steps:
      - task: Gradle@2
        env:
          CRATE_TESTS_SQL_REQUEST_TIMEOUT: 20
        inputs:
          workingDirectory: ''
          gradleWrapperFile: 'gradlew'
          gradleOptions: '-Xmx2048m'
          javaHomeOption: 'JDKVersion'
          jdkVersionOption: '1.11'
          jdkArchitectureOption: 'x64'
          publishJUnitResults: true
          testResultsFiles: '**/TEST-*.xml'
          tasks: ':sql:test'

Use newer images on azure pipelines
Use newer images on azure pipelines
