Mohammed Naser | 9a6c35d | 2025-02-13 13:23:51 -0500 | [diff] [blame] | 1 | - 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: |
Zuul | 9ff3a48 | 2025-03-13 23:47:06 -0400 | [diff] [blame] | 14 | name: ["build-essential", "pkg-config", "libssl-dev"] |
Mohammed Naser | 9a6c35d | 2025-02-13 13:23:51 -0500 | [diff] [blame] | 15 | 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/', '')) }}" |