Copy openapi spec into rust project
In order to do more tests of the sdk/cli/types it is necessary to have a convenient access to the source openapi spec. Copy this into the `openstack_types/data`. Change-Id: Ica1849dc81e77d05f277a14bb00030485c704ba2
This commit is contained in:
@@ -30,6 +30,17 @@
|
||||
dest: "{{ rust_project_dir }}"
|
||||
remote_src: True
|
||||
|
||||
- name: "Create openstack_types/data dir"
|
||||
ansible.builtin.file:
|
||||
path: "{{ rust_project_dir }}/openstack_types/data"
|
||||
state: "directory"
|
||||
|
||||
- name: "Copy OpenAPI specs"
|
||||
ansible.builtin.copy:
|
||||
src: "{{ codegenerator_base_dir }}/wrk/openapi_specs/"
|
||||
dest: "{{ rust_project_dir }}/openstack_types/data"
|
||||
remote_src: True
|
||||
|
||||
- name: "Optimize generated code with clippy"
|
||||
ansible.builtin.command:
|
||||
cmd: "cargo clippy --fix --lib --tests --bins --allow-dirty"
|
||||
|
||||
Reference in New Issue
Block a user