jobs:

- job: OpenJDK8
  pool:
    vmImage: 'ubuntu-16.04'
  steps:
  - bash: |
      set -ev
      curl -O -L --retry 3 https://github.com/sormuras/bach/raw/master/install-jdk.sh
      source install-jdk.sh --url https://cdn.azul.com/zulu/bin/zulu8.38.0.13-ca-jdk8.0.212-linux_x64.tar.gz
      ./gradlew --no-daemon --version
      ./run-tests.sh
    displayName: Build
  - task: PublishTestResults@2
    inputs:
      testResultsFormat: 'JUnit'
      testResultsFiles: "**/TEST-*.xml"
    condition: succeededOrFailed()

- job: WindowsJDK8
  pool:
    vmImage: 'vs2017-win2016'
  steps:
  - bash: |
      set -ev
      ./gradlew.bat --no-daemon --version
      ./run-tests.bat
    displayName: Build
  - task: PublishTestResults@2
    inputs:
      testResultsFormat: 'JUnit'
      testResultsFiles: "**/TEST-*.xml"
    condition: succeededOrFailed()
Set up CI with Azure Pipelines
Set up CI with Azure Pipelines

[skip ci]