Update verion of typos that we use to fix typos in the openapi specs. Since there are quite lot findings (and fixes cause other failures) also update pre-commit and the resulting changes. Change-Id: I795215942e1587bf914d923edd09070fe729e9d5 Signed-off-by: Artem Goncharov <artem.goncharov@gmail.com>
40 lines
1.2 KiB
YAML
40 lines
1.2 KiB
YAML
---
|
|
- hosts: all
|
|
roles:
|
|
- ensure-pip
|
|
- ensure-virtualenv
|
|
|
|
tasks:
|
|
- name: Install openstack-codegenerator from sources
|
|
ansible.builtin.pip:
|
|
chdir: "{{ zuul.projects['opendev.org/openstack/codegenerator'].src_dir }}"
|
|
name: "."
|
|
virtualenv: "{{ ansible_user_dir }}/.venv"
|
|
|
|
- name: Install additional dependencies from sources
|
|
ansible.builtin.pip:
|
|
chdir: "{{ zuul.projects[zj_dep.project].src_dir }}"
|
|
name: "{{ zj_dep.name }}"
|
|
virtualenv: "{{ ansible_user_dir }}/.venv"
|
|
loop: "{{ install_additional_projects }}"
|
|
loop_control:
|
|
loop_var: zj_dep
|
|
|
|
- name: Download crate-ci/typos
|
|
ansible.builtin.get_url:
|
|
url: "https://github.com/crate-ci/typos/releases/download/v1.38.1/typos-v1.38.1-x86_64-unknown-linux-musl.tar.gz"
|
|
dest: "/tmp/typos.tar.gz"
|
|
|
|
- name: Create bin folder
|
|
ansible.builtin.file:
|
|
path: "{{ ansible_user_dir }}/bin"
|
|
state: "directory"
|
|
mode: "0755"
|
|
|
|
- name: Unpack typos
|
|
ansible.builtin.unarchive:
|
|
src: "/tmp/typos.tar.gz"
|
|
dest: "{{ ansible_user_dir }}/bin"
|
|
creates: "{{ ansible_user_dir }}/bin/typos"
|
|
remote_src: true
|