forked from JNPRAutomate/ansible-junos-evpn-vxlan
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
27 lines (25 loc) · 885 Bytes
/
.gitlab-ci.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
before_script:
- apt-get update
- apt-get install -y python-dev
- curl "https://bootstrap.pypa.io/get-pip.py" -o "get-pip.py"
- python get-pip.py
- pip install ansible
- git clone https://github.com/Juniper/ansible-junos-stdlib.git roles/Juniper.junos
#################################################
## Execute TEST Stage on all branches ##
#################################################
check_playbooks:
stage: test
script:
- ansible-playbook pb.conf.all.yaml --syntax-check
- ansible-playbook pb.check.overlay.yaml --syntax-check
- ansible-playbook pb.check.underlay.yaml --syntax-check
#################################################
## Execute DEPLOY Stage only on Branch Master ##
#################################################
deploy_config:
stage: deploy
only:
- master
script:
- ansible-playbook pb.conf.all.yaml