linux-config/.gitlab-ci.yml
2021-10-28 21:07:36 +03:00

35 lines
1 KiB
YAML

---
stages:
- dnf_systems
- apt_systems
Run Workstation playbook on fedora:
stage: dnf_systems
image: fedora
script:
- dnf install -y ansible python3-pip
- pip3 install -r ci-requirements.txt
- mkdir /tmp/artifacts
- ANSIBLE_CONFIG=$(pwd)/ansible.cfg JUNIT_OUTPUT_DIR=/tmp/artifacts ansible-playbook workstation.yml || (mv /tmp/artifacts/workstation-*.xml report.xml && exit 1)
- cp /tmp/artifacts/workstation-*.xml report.xml
- ls /tmp/artifacts
artifacts:
when: always
reports:
junit: report.xml
Run Workstation playbook on ubuntu:
stage: apt_systems
image: ubuntu
script:
- apt-get update
- apt-get install -y ansible python3-pip python3-apt
- pip3 install -r ci-requirements.txt
- mkdir /tmp/artifacts
- ANSIBLE_CONFIG=$(pwd)/ansible.cfg JUNIT_OUTPUT_DIR=/tmp/artifacts ansible-playbook workstation.yml || (mv /tmp/artifacts/workstation-*.xml report.xml && exit 1)
- mv /tmp/artifacts/workstation-*.xml report.xml
- ls /tmp/artifacts
artifacts:
when: always
reports:
junit: report.xml