forked from ksator/openconfig-demo-with-juniper-devices
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
42 lines (34 loc) · 1.02 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
language: python
python:
- 2.7
sudo: required
dist: trusty
env:
- ANSIBLE_VERSION=2.1.0.0
- ANSIBLE_VERSION=2.1.1.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 pb.backup.yml --syntax-check
- ansible-playbook pb.check.L2.L3.yml --syntax-check
- ansible-playbook pb.check.interfaces.yml --syntax-check
- ansible-playbook pb.conf.bgp.oc.yaml --syntax-check
- ansible-playbook pb.conf.interfaces.yml --syntax-check
- ansible-playbook pb.render.template.yml
- ansible-playbook pb.rollback.yml --syntax-check
- python -m py_compile pyez.oc.bgp.py
branches:
only:
- master
notifications:
email:
recipients:
- khelil.sator.git@gmail.com
on_failure: always
slack:
ksator-junos:PLH8kAE04Zukod83ejgNxlBz