blob: 02b955513dcd5c2ab55cb354013dbe7ef76282f1 [file] [log] [blame]
- hosts: all
tasks:
- name: Install Docker
ansible.builtin.include_role:
name: ensure-docker
- name: Install Rust
ansible.builtin.include_role:
name: ensure-rust
- name: Ensure required packages are installed
become: true
ansible.builtin.apt:
name: ["build-essential", "pkg-config", "libssl-dev"]
state: present
- name: Run "cargo test"
ansible.builtin.command: cargo test --workspace
args:
chdir: "{{ zuul.project.src_dir }}"
environment:
REGISTRY: "{{ (zuul.artifacts | default([]) | length > 0) | ternary('harbor.atmosphere.dev/ci', 'harbor.atmosphere.dev/library') }}"
TAG: "{{ (zuul.artifacts | default([]) | length > 0) | ternary(zuul.change, zuul.branch.replace('stable/', '')) }}"