Skip to content

Commit 3bc32f9

Browse files
committed
CI: Verify building extension packages
Build cryptography where possible, and bcrypt otherwise.
1 parent cc637c1 commit 3bc32f9

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

ci/azure-pipelines-template.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,20 @@ jobs:
4747
displayName: Clippy
4848
condition: ne( variables['rustup_toolchain'], 'nightly' )
4949

50-
- ${{ if ne(parameters.name, 'Windows') }}:
50+
- ${{ if eq(parameters.name, 'Linux') }}:
51+
- script: |
52+
cargo run --bin pyoxidizer -- init --pip-install cryptography --python-code 'import cryptography; print("hello, world")' ~/pyapp
53+
cargo run --bin pyoxidizer -- run ~/pyapp
54+
displayName: Build Oxidized Application
55+
56+
- ${{ if eq(parameters.name, 'macOS') }}:
5157
- script: |
52-
cargo run --bin pyoxidizer -- init --python-code 'print("hello, world")' ~/pyapp
58+
cargo run --bin pyoxidizer -- init --pip-install bcrypt --python-code 'import bcrypt; print("hello, world")' ~/pyapp
5359
cargo run --bin pyoxidizer -- run ~/pyapp
5460
displayName: Build Oxidized Application
5561
5662
- ${{ if eq(parameters.name, 'Windows') }}:
5763
- script: |
58-
cargo run --bin pyoxidizer -- init --python-code 'print("hello, world")' %HOME%/pyapp
64+
cargo run --bin pyoxidizer -- init --pip-install cryptography --python-code '__import__("cryptography") and print("hello, world")' %HOME%/pyapp
5965
cargo run --bin pyoxidizer -- run %HOME%/pyapp
6066
displayName: Build Oxidized Application (Windows)

0 commit comments

Comments
 (0)