forked from ijl/orjson
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathazure-debug.yml
More file actions
32 lines (31 loc) · 1.08 KB
/
Copy pathazure-debug.yml
File metadata and controls
32 lines (31 loc) · 1.08 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
parameters:
- name: extra
type: string
default : ''
- name: interpreter
type: string
default : ''
- name: compatibility
type: string
default : ''
- name: path
type: string
default : ''
- name: toolchain
type: string
default : ''
steps:
- bash: curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain $(toolchain) --profile minimal -y
displayName: rustup
- bash: PATH=$(path) rustup default $(toolchain)
displayName: ensure toolchain
- bash: PATH=$(path) $(interpreter) -m pip install --user --upgrade pip "maturin>=0.12.19,<0.13" wheel
displayName: build dependencies
- bash: PATH=$(path) $(interpreter) -m pip install --user -r test/requirements.txt -r integration/requirements.txt
displayName: test dependencies
- bash: PATH=$(path) maturin build --no-sdist --strip $(extra) --compatibility $(compatibility) --interpreter $(interpreter)
displayName: build debug
- bash: PATH=$(path) $(interpreter) -m pip install --user target/wheels/orjson*.whl
displayName: install
- bash: PATH=$(path) pytest -s -rxX -v test
displayName: pytest