linux-config/.gitlab-ci.yml

36 lines
854 B
YAML
Raw Normal View History

2021-10-22 11:45:20 +00:00
---
stages:
- ansible lint
2021-12-19 10:17:49 +00:00
- x86 Systems
2021-10-22 11:45:20 +00:00
Ansible Lint:
stage: ansible lint
image:
name: fedora:latest
before_script:
- dnf install -y git ansible python3-ansible-lint
- export ANSIBLE_CONFIG=$(pwd)/ansible.cfg
- ./install-ansible-modules.sh
- ansible-lint --version
script:
- ansible-lint --force-color . &> lint-output.txt
- echo $? > status
- cat lint-output.txt
- if [ $(cat status) -ne 0 ]; then echo "Lint returned with warnings/fails"; exit 1; fi
2021-10-22 11:45:20 +00:00
Run Workstation playbook on fedora:
2021-12-19 10:17:49 +00:00
stage: x86 Systems
image:
name: fedora:latest
2021-10-22 11:45:20 +00:00
script:
- dnf install -y ansible python3-pip
- pip3 install -r ci-requirements.txt
- mkdir /tmp/artifacts
- ./run_play.sh workstation
- mv /tmp/artifacts/workstation-*.xml report.xml
artifacts:
when: always
reports:
junit: report.xml