-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun.sh
executable file
·30 lines (25 loc) · 1018 Bytes
/
run.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/bash
set -euxo pipefail
export ANSIBLE_SSH_RETRIES=10
export VIRTUAL_ENV_DISABLE_PROMPT=1
. ~/virtualenv/bin/activate
ansible-galaxy collection install --requirements-file requirements.yml --collections-path collections
find collections/ansible_collections/ -maxdepth 3 -name requirements.txt -exec pip install -r {} \;
git_repo="goneri/cloud-init"
#git_repo="canonical/cloud-init"
promote=false
log_dir=$(date +results/%Y%m%d-%H%M)
mkdir -p ${log_dir}
function run_test() {
target=${1}
ansible-playbook cleanup.yaml
ansible-playbook playbook.yml -i inventory.yaml -e @targets/${target}.yaml -e git_repo=${git_repo}
timeout 1800 ansible-playbook openstack.yaml -e @targets/${target}.yaml
if [ "${promote}" = true ] ; then
ansible-playbook promote.yaml -e @targets/${target}.yaml
fi
ansible-playbook cleanup.yaml
}
for target in freebsd-13.4-ufs freebsd-13.4-zfs freebsd-14.1-ufs freebsd-14.1-zfs ;do
run_test ${target} 2>&1 | tee ${log_dir}/${target}-build.log
done