1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
|
# This job creates wheels for Windows/OSX
steps:
- script: |
mkdir -p dist
python -m pip install --upgrade pip setuptools -r test-requirements.txt
displayName: 'Install dependencies'
- script: |
python -m pip wheel . -w wheelhouse/
displayName: 'Build wheel'
- script: |
ls -lh wheelhouse
cp wheelhouse/$(package_name)* dist/.
displayName: 'Show wheelhouse'
- script: |
python -m pip install jpype1 --no-index -f wheelhouse
displayName: 'Install module'
- script: |
python setup.py test_java
displayName: 'Build java tests'
- script: |
ls -l
ls lib/
displayName: 'Check deps'
- task: PublishPipelineArtifact@0
inputs:
artifactName: 'artifact_$(Agent.JobName)_$(Agent.OS)_$(python.architecture)'
targetPath: 'dist'
- script: |
rm -Rf jpype
python -m pytest -v --junit-xml=build/test/test.xml test/jpypetest --checkjni --fast
displayName: 'Test module'
|