Skip to content
This repository has been archived by the owner on Oct 11, 2020. It is now read-only.

15. Continuous integration with Travis CI

Khelil Sator edited this page Nov 24, 2017 · 1 revision

The playbooks in this repository are tested automatically by Travis CI.
The files .travis.yml and requirements.txt at the root of this repository are used for this.
The command ansible-playbook has a built in option to check only the playbook's syntax (--syntax-check). This is how Travis is testing our playbooks that interact with Junos. If there is a syntax error, Travis will fail the build and output the errors in the log. Travis CI doesnt actually connect to the devices.
Travis is also checking the syntax of my python scripts.