Move more stuff to pre-run for resillience (#5658)

This commit is contained in:
Alex Gaynor 2020-12-19 13:42:37 -05:00 committed by GitHub
parent 0e9ee795db
commit 7b3e266c2f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 35 additions and 35 deletions

View file

@ -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:

View file

@ -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

View file

@ -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

View 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'