forked from JNPRAutomate/ansible-junos-evpn-vxlan
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
58 lines (52 loc) · 1.69 KB
/
.travis.yml
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
language: python
python:
- 2.7
sudo: required
dist: trusty
env:
# - ANSIBLE_VERSION=2.0.2.0
- ANSIBLE_VERSION=2.1.0.0
addons:
apt:
packages:
- python-dev
- python-simplejson
- python-support
- python-yaml
- libxml2-dev
- libxslt-dev
- zlib1g-dev
- libffi-dev
- libssl-dev
install:
# - apt-get install -y python-dev python-simplejson python-support python-yaml libxml2-dev libxslt-dev zlib1g-dev libffi-dev libssl-dev
- pip install -r requirements.txt
- pip install -q ansible==$ANSIBLE_VERSION
- ansible-galaxy install Juniper.junos -p ./roles
- pip install ansible junos-eznc lxml jxmlease markupsafe requests httplib2
- mkdir library
- git clone https://github.com/Juniper/ravello-ansible.git library/ravello-ansible
- mv .travis_ansible_python.yaml group_vars/all/travis_ansible_python.yaml
script:
# Check Sample topology
- ansible-playbook -i hosts.ini pb.generate.variables.yaml
- ansible-playbook -i hosts.ini pb.conf.all.yaml
# Check Ravello Topology
- ansible-playbook -i ravello.ini pb.generate.variables.yaml
- ansible-playbook -i ravello.ini pb.conf.all.yaml
#
# # Create topology on Ravello
# - ansible-playbook -i ravello.ini pb.rav.token.create-deploy.yaml
# - ansible-playbook -i ravello.ini pb.rav.token.fqdn_get.yaml
#
# # Check all VMs are running with PFE
# - ansible-playbook -i ravello.ini pb.check.vqfx-pfe.yaml
#
# # Generate and deploy configuration
# - ansible-playbook -i ravello.ini pb.conf.all.commit.galaxy.yaml
#
# # Validate connectivity between Hosts
# - ansible-playbook -i ravello.ini pb.check.underlay.yaml
#
# after_script:
# - ansible-playbook -i ravello.ini pb.rav.token.app_stop.yaml