8f08eb5b6cbbd76b4456e1df90fa1eb9baf8bc81
[releng/builder.git] / jjb / packaging / include-raw-test-ansible-deb.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 deb_build
11 source deb_build/bin/activate
12 pip install --upgrade pip
13
14 # Install latest ansible
15 sudo apt-add-repository ppa:ansible/ansible
16 sudo apt-get update
17 sudo apt-get install -y ansible
18
19 git clone https://github.com/dfarrell07/ansible-opendaylight.git
20 cd ansible-opendaylight
21 sudo ansible-galaxy install -r requirements.yml
22 sudo ansible-playbook -i "localhost," -c local examples/deb_repo_install_playbook.yml
23
24 # Add more tests