Debian Codegraph @

ansible_collections/community/general/tests/integration/targets/cargo/tasks/main.yml

raw
1 ---
2 # Copyright (c) Ansible Project
3 # GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
4 # SPDX-License-Identifier: GPL-3.0-or-later
5
6 - import_tasks: setup.yml
7 - name: Set default environment
8 set_fact:
9 cargo_environment: {}
10 - name: Set special environment to work around cargo bugs
11 set_fact:
12 cargo_environment:
13 # See https://github.com/rust-lang/cargo/issues/10230#issuecomment-1201662729:
14 CARGO_NET_GIT_FETCH_WITH_CLI: "true"
15 when: has_cargo | default(false) and ansible_facts.distribution == 'Alpine'
16 - block:
17 - import_tasks: test_general.yml
18 - import_tasks: test_version.yml
19 - import_tasks: test_directory.yml
20 environment: "{{ cargo_environment }}"
21 when: has_cargo | default(false)
22 - import_tasks: test_rustup_cargo.yml
23 when: (rustup_cargo_bin | default(false)) is truthy