deb-mock/mock/integration-tests/setup-box
robojerk 4c0dcb2522
Some checks failed
Build Deb-Mock Package / build (push) Successful in 54s
Lint Code / Lint All Code (push) Failing after 1s
Test Deb-Mock Build / test (push) Failing after 36s
enhance: Add comprehensive .gitignore for deb-mock project
- Add mock-specific build artifacts (chroot/, mock-*, mockroot/)
- Include package build files (*.deb, *.changes, *.buildinfo)
- Add development tools (.coverage, .pytest_cache, .tox)
- Include system files (.DS_Store, Thumbs.db, ._*)
- Add temporary and backup files (*.tmp, *.bak, *.backup)
- Include local configuration overrides (config.local.yaml, .env.local)
- Add test artifacts and documentation builds
- Comprehensive coverage for Python build system project

This ensures build artifacts, chroot environments, and development
tools are properly ignored in version control.
2025-08-18 23:37:49 -07:00

54 lines
1.2 KiB
Bash
Executable file

#! /bin/sh
directory=$(dirname "$(readlink -f "$0")")/setup-playbook
cd "$directory" || exit 1
echo >&2 "Running in directory: $directory"
inventory=$directory/inventory
test -f "$inventory" || {
cat >&2 <<EOF
Please provide inventory file
$inventory
with content similar to:
[testing_mock_machines]
<IP_ADDRESS>
[testing_mock_machines:vars]
mock_rhn_user=<your Red Hat account username>
mock_rhn_pass=<your Red Hat account password>
... and then re-run this script.
If you have no IP_ADDRESS for testing, you may, e.g., create a new machine in
EC2 with group_vars/all.yaml file like:
infra_subnet: subnet-0995f6a466849f4c3
aws:
ssh_key: "praiskup"
image: ami-004f552bba0e5f64f
instance_type: t2.large
root_volume_size: 60
security_group: mock-testing
by running
$ ansible-playbook spawn-test-machine-ec2.yaml
PLAY [Start new machine] *****************
TASK [create the testing mock vm in ec2] *
changed: [localhost]
TASK [print ipv4] ************************
...
"Public IP: 18.234.135.130"
...
EOF
exit 1
}
ansible-playbook -i inventory setup-playbook.yml "$@"