# This task tests individual platforms and versions
steps:
- task: UsePythonVersion@0
  inputs:
    versionSpec: '$(python.version)'

- template: jdk.yml
  parameters:
    version: 11

- script: |
    python setup.py build_ext --inplace
  displayName: 'Build module'

- script: |
    pip install numpy jedi typing_extensions
    python -c "import jpype"
  displayName: 'Check module'

- script: |
    python setup.py test_java
    pip install -r test-requirements.txt
  displayName: 'Install test'

- script: |
    python -m pytest -v --junit-xml=build/test/test.xml test/jpypetest --checkjni  
  displayName: 'Test JDK 11'

# lack of src/ seems to confuse entry points
- script: |
    pip install .
    mkdir empty
    cd empty
    python -m PyInstaller.utils.run_tests --include_only jpype._pyinstaller.
  displayName: 'Test PyInstaller result'

- task: PublishTestResults@2
  condition: succeededOrFailed()
  inputs:
     testResultsFiles: 'build/test/test.xml'
     testRunTitle: 'Publish test results for Python $(python.version) with JDK 11'


# This task tests individual platforms and versions
steps:
- task: UsePythonVersion@0
  inputs:
    versionSpec: '$(python.version)'

- template: jdk.yml
  parameters:
    version: 11

- script: |
    python setup.py build_ext --inplace
  displayName: 'Build module'

- script: |
    pip install numpy jedi typing_extensions
    python -c "import jpype"
  displayName: 'Check module'

- script: |
    python setup.py test_java
    pip install -r test-requirements.txt
  displayName: 'Install test'

- script: |
    python -m pytest -v --junit-xml=build/test/test.xml test/jpypetest --checkjni  
  displayName: 'Test JDK 11'

# presence of src/ seems to confuse entry_points so `cd` elsewhere
- script: |
    pip install .
    mkdir empty
    cd empty
    python -m PyInstaller.utils.run_tests --include_only jpype._pyinstaller.
  displayName: 'Test PyInstaller result'

- task: PublishTestResults@2
  condition: succeededOrFailed()
  inputs:
     testResultsFiles: 'build/test/test.xml'
     testRunTitle: 'Publish test results for Python $(python.version) with JDK 11'


Improve comment for mkdir empty
Improve comment for mkdir empty