This repository has been archived by the owner on Oct 11, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.travis.yml
45 lines (38 loc) · 1.85 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
language: python
python:
- 2.7
sudo: required
dist: trusty
env:
- ANSIBLE_VERSION=2.2.3.0
- ANSIBLE_VERSION=2.1.2.0
- ANSIBLE_VERSION=2.2.0.0
before_install:
- sudo apt-get install -y python-dev libxml2-dev python-pip libxslt1-dev build-essential libssl-dev libffi-dev
install:
- pip install -r requirements.txt
- pip install -q ansible==$ANSIBLE_VERSION
- ansible-galaxy --force install Juniper.junos -p ./
script:
- ansible-playbook automation_content/pb.template.yml --extra-vars "device=spine template=dns.j2" --syntax-check
- ansible-playbook automation_content/pb.rollback.yml --extra-vars "device=fabric rbid=1" --syntax-check
- ansible-playbook automation_content/pb.backup.yml --extra-vars "device=all" --syntax-check
- ansible-playbook automation_content/pb.config.yml --extra-vars "device=fabric cli=set system login message newbanner" --syntax-check
- ansible-playbook automation_content/pb.command.yml --extra-vars "device=leaf cli=show version" --syntax-check
- ansible-playbook automation_content/pb.remove.ebgp.yml --extra-vars "device=leaf-03 peer_ip=172.16.0.28" --syntax-check
- ansible-playbook automation_content/pb.conf.bgp.oc.yml --extra-vars "device=fabric" --syntax-check
- ansible-playbook automation_content/pb.check.interfaces.yml --extra-vars "device=fabric" --syntax-check
- ansible-playbook automation_content/pb.check.bgp.yml --extra-vars "device=leaf-03 peer_ip=172.16.0.28" --syntax-check
- ansible-playbook automation_content/pb.add.ebgp.yml --extra-vars "device=leaf-03 peer_ip=172.16.0.28 peer_asn=65014" --syntax-check
- python -m py_compile automation_content/get_facts.py
- python -m py_compile automation_content/whois.py
branches:
only:
- master
notifications:
email:
recipients:
on_failure: always
slack:
ksator-junos:3E4B5NH4OpyqtvRxxSZrJDJx