Add SpaceConsistencyBear to ShellCheck
[releng/builder.git] / jjb / packaging / include-raw-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 pip install --upgrade pip
13 sudo yum install -y ansible
14
15 git clone https://github.com/dfarrell07/ansible-opendaylight.git
16 cd ansible-opendaylight
17 sudo ansible-galaxy install -r requirements.yml
18 sudo ansible-playbook -i "localhost," -c local examples/odl_6_testing_playbook.yml
19
20 # Add more tests