mirror of
https://github.com/saymrwulf/cryptography.git
synced 2026-05-14 20:37:55 +00:00
Move more stuff to pre-run for resillience (#5658)
This commit is contained in:
parent
0e9ee795db
commit
7b3e266c2f
4 changed files with 35 additions and 35 deletions
|
|
@ -2,7 +2,7 @@
|
|||
name: pyca-cryptography-base
|
||||
abstract: true
|
||||
description: Run pyca/cryptography unit testing
|
||||
pre-run: .zuul.playbooks/playbooks/clone-wycheproof/main.yaml
|
||||
pre-run: .zuul.playbooks/playbooks/tox/pre.yaml
|
||||
run: .zuul.playbooks/playbooks/tox/main.yaml
|
||||
|
||||
- job:
|
||||
|
|
|
|||
|
|
@ -1,7 +0,0 @@
|
|||
- hosts: all
|
||||
tasks:
|
||||
- name: Clone wycheproof
|
||||
git:
|
||||
repo: https://github.com/google/wycheproof
|
||||
dest: "{{ ansible_facts.env['HOME'] }}/wycheproof"
|
||||
depth: 1
|
||||
|
|
@ -1,32 +1,5 @@
|
|||
- hosts: all
|
||||
tasks:
|
||||
|
||||
- name: Install tox
|
||||
include_role:
|
||||
name: ensure-tox
|
||||
|
||||
- name: Install required packages
|
||||
package:
|
||||
name:
|
||||
- build-essential
|
||||
- libssl-dev
|
||||
- libffi-dev
|
||||
- python3-dev
|
||||
become: yes
|
||||
when: ansible_distribution in ['Debian', 'Ubuntu']
|
||||
|
||||
- name: Install required packages
|
||||
package:
|
||||
name:
|
||||
- redhat-rpm-config
|
||||
- gcc
|
||||
- libffi-devel
|
||||
- openssl-devel
|
||||
- python3-devel
|
||||
- python2-devel
|
||||
become: yes
|
||||
when: ansible_distribution == 'CentOS'
|
||||
|
||||
- name: Run tox
|
||||
include_role:
|
||||
name: tox
|
||||
|
|
|
|||
34
.zuul.playbooks/playbooks/tox/pre.yaml
Normal file
34
.zuul.playbooks/playbooks/tox/pre.yaml
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
- hosts: all
|
||||
tasks:
|
||||
- name: Clone wycheproof
|
||||
git:
|
||||
repo: https://github.com/google/wycheproof
|
||||
dest: "{{ ansible_facts.env['HOME'] }}/wycheproof"
|
||||
depth: 1
|
||||
|
||||
- name: Install tox
|
||||
include_role:
|
||||
name: ensure-tox
|
||||
|
||||
- name: Install required packages
|
||||
package:
|
||||
name:
|
||||
- build-essential
|
||||
- libssl-dev
|
||||
- libffi-dev
|
||||
- python3-dev
|
||||
become: yes
|
||||
when: ansible_distribution in ['Debian', 'Ubuntu']
|
||||
|
||||
- name: Install required packages
|
||||
package:
|
||||
name:
|
||||
- redhat-rpm-config
|
||||
- gcc
|
||||
- libffi-devel
|
||||
- openssl-devel
|
||||
- python3-devel
|
||||
- python2-devel
|
||||
become: yes
|
||||
when: ansible_distribution == 'CentOS'
|
||||
|
||||
Loading…
Reference in a new issue