Skip to content
Snippets Groups Projects
Unverified Commit 2f44b40d authored by Cristian Calin's avatar Cristian Calin Committed by GitHub
Browse files

OEL7: Fix CentOS7 Extras for OEL7 (#8219)

* OEL7: Fix CentOS7 Extras for OEL7

* Molecule: add logs collection for jobs
parent 20157254
No related branches found
No related tags found
No related merge requests found
......@@ -16,6 +16,12 @@ molecule_tests:
- ./tests/scripts/vagrant_clean.sh
script:
- ./tests/scripts/molecule_run.sh
after_script:
- chronic ./tests/scripts/molecule_logs.sh
artifacts:
when: always
paths:
- molecule_logs/
.vagrant:
extends: .testcases
......
......@@ -79,7 +79,7 @@
- { option: "name", value: "CentOS-{{ ansible_distribution_major_version }} - Extras" }
- { option: "enabled", value: "1" }
- { option: "gpgcheck", value: "0" }
- { option: "baseurl", value: "http://mirror.centos.org/centos/{{ ansible_distribution_major_version }}/extras/$basearch/os/" }
- { option: "baseurl", value: "http://mirror.centos.org/centos/{{ ansible_distribution_major_version }}/extras/$basearch/{% if ansible_distribution_major_version|int > 7 %}os/{% endif %}" }
when:
- use_oracle_public_repo|default(true)
- '''ID="ol"'' in os_release.stdout_lines'
......
#!/bin/bash
# Ensure a clean environent
rm -fr molecule_logs
mkdir -p molecule_logs
# Collect and archive the logs
find ~/.cache/molecule/ -name \*.out -o -name \*.err -type f | xargs tar -uf molecule_logs/molecule.tar
gzip molecule_logs/molecule.tar
......@@ -6,7 +6,7 @@ export LANG=C.UTF-8
for d in $(find roles -name molecule -type d)
do
cd $(dirname $d)
pushd $(dirname $d)
molecule test --all
cd -
done
\ No newline at end of file
popd
done
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment