blob: 02b955513dcd5c2ab55cb354013dbe7ef76282f1 [file] [log] [blame]
Mohammed Naser9a6c35d2025-02-13 13:23:51 -05001- hosts: all
2 tasks:
3 - name: Install Docker
4 ansible.builtin.include_role:
5 name: ensure-docker
6
7 - name: Install Rust
8 ansible.builtin.include_role:
9 name: ensure-rust
10
11 - name: Ensure required packages are installed
12 become: true
13 ansible.builtin.apt:
Zuul9ff3a482025-03-13 23:47:06 -040014 name: ["build-essential", "pkg-config", "libssl-dev"]
Mohammed Naser9a6c35d2025-02-13 13:23:51 -050015 state: present
16
17 - name: Run "cargo test"
18 ansible.builtin.command: cargo test --workspace
19 args:
20 chdir: "{{ zuul.project.src_dir }}"
21 environment:
22 REGISTRY: "{{ (zuul.artifacts | default([]) | length > 0) | ternary('harbor.atmosphere.dev/ci', 'harbor.atmosphere.dev/library') }}"
23 TAG: "{{ (zuul.artifacts | default([]) | length > 0) | ternary(zuul.change, zuul.branch.replace('stable/', '')) }}"