forked from ijl/orjson
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathazure-win.yml
More file actions
34 lines (33 loc) · 1.32 KB
/
Copy pathazure-win.yml
File metadata and controls
34 lines (33 loc) · 1.32 KB
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
parameters:
interpreter: ''
target: ''
toolchain: ''
steps:
- script: |
curl https://win.rustup.rs/x86_64 -o rustup-init.exe
rustup-init.exe -y --default-host $(target) --default-toolchain $(toolchain) --profile minimal
set PATH=%PATH%;%USERPROFILE%\.cargo\bin
rustup default $(toolchain)
echo "##vso[task.setvariable variable=PATH;]%PATH%;%USERPROFILE%\.cargo\bin"
displayName: rustup
- script: python.exe -m pip install --upgrade pip "maturin>=0.12.19,<0.13" wheel
displayName: build dependencies
- script: python.exe -m pip install -r test\requirements.txt -r integration\requirements.txt
displayName: test dependencies
- script: maturin.exe build --no-sdist --release --strip --interpreter $(interpreter)
displayName: build
- script: python.exe -m pip install orjson --no-index --find-links=D:\a\1\s\target\wheels
displayName: install
- script: python.exe -m pytest -s -rxX -v test
displayName: pytest
- script: python.exe -m pip uninstall -y numpy
displayName: remove optional packages
- script: python.exe -m pytest -s -rxX -v test
displayName: pytest without optional packages
- script: python.exe integration\thread
displayName: thread
- bash: ./ci/deploy /d/a/1/s/target/wheels/*.whl
displayName: deploy
env:
MATURIN_PASSWORD: $(TWINE_PASSWORD)
MATURIN_USERNAME: $(TWINE_USERNAME)