Merge "Strip include-raw prefix for script files"
[releng/builder.git] / jjb / packaging / test-ansible-rpm.sh
1 #!/bin/bash
2
3 # Options:
4 #   -x: Echo commands
5 #   -e: Fail on errors
6 #   -o pipefail: Fail on errors in scripts this calls, give stacktrace
7 set -ex -o pipefail
8
9 # Install required packages
10 virtualenv rpm_build
11 source rpm_build/bin/activate
12 PYTHON="rpm_build/bin/python"
13 $PYTHON -m pip install --upgrade pip
14 sudo yum install -y ansible
15
16 git clone https://github.com/dfarrell07/ansible-opendaylight.git
17 cd ansible-opendaylight
18 sudo ansible-galaxy install -r requirements.yml
19 sudo ansible-playbook -i "localhost," -c local examples/odl_6_testing_playbook.yml
20
21 # Add more tests