ensure-rust: verify cryptography build on Ubuntu

Just for sanity, ensure the cryptography build (that uses rust) works.

Change-Id: I2fc9dc1fd0f19191af1535dd660d2a5376139764
This commit is contained in:
Ian Wienand 2021-10-04 12:00:02 +11:00
parent 67ae84ce39
commit 5cd0182aac
2 changed files with 26 additions and 0 deletions

View File

@ -19,3 +19,28 @@
- name: Run hello world
command: ./hello
- name: Test pyca/cryptography build
when: ansible_distribution == 'Ubuntu'
block:
- name: Ensure pip
include_role:
name: ensure-pip
- name: Install deps
package:
name: '{{ item }}'
state: present
loop:
- build-essential
- libssl-dev
- libffi-dev
- python3-dev
become: yes
- name: Check build
shell: |
python3 -m venv ./venv
./venv/bin/pip install --upgrade pip
./venv/bin/pip install cryptography --no-binary cryptography

View File

@ -6,6 +6,7 @@
files:
- playbooks/ensure-rust.yaml
- roles/ensure-rust
- test-playbooks/rust/ensure-rust.yaml
- zuul.d/rust-jobs.yaml
# -* AUTOGENERATED *-