5cd0182aac
Just for sanity, ensure the cryptography build (that uses rust) works. Change-Id: I2fc9dc1fd0f19191af1535dd660d2a5376139764
47 lines
992 B
YAML
47 lines
992 B
YAML
- hosts: all
|
|
tasks:
|
|
|
|
- include_role:
|
|
name: ensure-rust
|
|
|
|
- name: Test cargo run
|
|
shell: |
|
|
cargo new foo
|
|
|
|
- name: Copy hello world
|
|
copy:
|
|
src: hello.rs
|
|
dest: hello.rs
|
|
mode: 0644
|
|
|
|
- name: Compile hello world
|
|
command: rustc hello.rs
|
|
|
|
- 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
|