File: wheels.yml

package info (click to toggle)
python-jpype 1.6.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,348 kB
  • sloc: python: 19,275; cpp: 18,049; java: 8,638; xml: 1,454; makefile: 155; sh: 37
file content (39 lines) | stat: -rw-r--r-- 927 bytes parent folder | download
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'