# Starter pipeline
# Start with a minimal pipeline that you can customize to build and deploy your code.
# Add steps that build, run tests, deploy, and more:
# https://aka.ms/yaml

trigger:
  - main

jobs:
  - job: java
    pool:
      vmImage: ubuntu-latest
    container: adoptopenjdk:18-jdk
    steps:
      - task: CmdLine@2.212.0
        inputs:
          script: |
            java -version
            make java-code
          failOnStderr: true
  - job: python
    pool:
      vmImage: ubuntu-latest
    steps:
      - script: |
          python --version
          pip install -r requirements.txt
          make python-code
        displayName: 'Run a multi-line script'
