Skip to content

Commit

Permalink
CI: Verify building extension packages
Browse files Browse the repository at this point in the history
Build cryptography where possible, and bcrypt otherwise.
  • Loading branch information
jayvdb committed Nov 19, 2019
1 parent cc637c1 commit 3bc32f9
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions ci/azure-pipelines-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,20 @@ jobs:
displayName: Clippy
condition: ne( variables['rustup_toolchain'], 'nightly' )

- ${{ if ne(parameters.name, 'Windows') }}:
- ${{ if eq(parameters.name, 'Linux') }}:
- script: |
cargo run --bin pyoxidizer -- init --pip-install cryptography --python-code 'import cryptography; print("hello, world")' ~/pyapp
cargo run --bin pyoxidizer -- run ~/pyapp
displayName: Build Oxidized Application
- ${{ if eq(parameters.name, 'macOS') }}:
- script: |
cargo run --bin pyoxidizer -- init --python-code 'print("hello, world")' ~/pyapp
cargo run --bin pyoxidizer -- init --pip-install bcrypt --python-code 'import bcrypt; print("hello, world")' ~/pyapp
cargo run --bin pyoxidizer -- run ~/pyapp
displayName: Build Oxidized Application
- ${{ if eq(parameters.name, 'Windows') }}:
- script: |
cargo run --bin pyoxidizer -- init --python-code 'print("hello, world")' %HOME%/pyapp
cargo run --bin pyoxidizer -- init --pip-install cryptography --python-code '__import__("cryptography") and print("hello, world")' %HOME%/pyapp
cargo run --bin pyoxidizer -- run %HOME%/pyapp
displayName: Build Oxidized Application (Windows)

0 comments on commit 3bc32f9

Please sign in to comment.