mirror of
https://gitlab.com/sagidayan/linux-config.git
synced 2024-12-22 22:19:52 +00:00
70 lines
1.8 KiB
YAML
70 lines
1.8 KiB
YAML
---
|
|
stages:
|
|
- dnf_systems
|
|
- apt_systems
|
|
|
|
Run Workstation playbook on fedora:
|
|
stage: dnf_systems
|
|
image: fedora:latest
|
|
script:
|
|
- dnf install -y ansible python3-pip
|
|
- pip3 install -r ci-requirements.txt
|
|
- mkdir /tmp/artifacts
|
|
- ./run_play.sh workstation
|
|
- cp /tmp/artifacts/workstation-*.xml report.xml
|
|
- ls /tmp/artifacts
|
|
artifacts:
|
|
when: always
|
|
reports:
|
|
junit: report.xml
|
|
|
|
Run cli-tools playbook on centos:
|
|
stage: dnf_systems
|
|
image: centos:8
|
|
script:
|
|
- dnf install -y epel-release dnf-plugins-core
|
|
- dnf install -y --nogpgcheck https://download1.rpmfusion.org/free/el/rpmfusion-free-release-8.noarch.rpm https://download1.rpmfusion.org/nonfree/el/rpmfusion-nonfree-release-8.noarch.rpm
|
|
- dnf makecache
|
|
- dnf install -y ansible python3-pip
|
|
- pip3 install -r ci-requirements.txt
|
|
- mkdir /tmp/artifacts
|
|
- ./run_play.sh cli-tools
|
|
- cp /tmp/artifacts/cli-tools-*.xml report.xml
|
|
- ls /tmp/artifacts
|
|
artifacts:
|
|
when: always
|
|
reports:
|
|
junit: report.xml
|
|
|
|
Run Workstation playbook on ubuntu:
|
|
stage: apt_systems
|
|
image: ubuntu:focal
|
|
script:
|
|
- apt-get update
|
|
- apt-get install -y ansible python3-pip python3-apt
|
|
- pip3 install -r ci-requirements.txt
|
|
- mkdir /tmp/artifacts
|
|
- ./run_play.sh workstation
|
|
- mv /tmp/artifacts/workstation-*.xml report.xml
|
|
- ls /tmp/artifacts
|
|
artifacts:
|
|
when: always
|
|
reports:
|
|
junit: report.xml
|
|
|
|
Run cli-tools playbook on debian:
|
|
stage: apt_systems
|
|
image: debian:latest
|
|
script:
|
|
- apt-get update
|
|
- apt-get install -y ansible python3-pip python3-apt
|
|
- pip3 install -r ci-requirements.txt
|
|
- mkdir /tmp/artifacts
|
|
- ./run_play.sh cli-tools
|
|
- mv /tmp/artifacts/cli-tools-*.xml report.xml
|
|
- ls /tmp/artifacts
|
|
artifacts:
|
|
when: always
|
|
reports:
|
|
junit: report.xml
|
|
|