commit b6834000aecf1329001b26123bac1f4fe503fb64 from: Sergey Bronnikov date: Thu Oct 18 12:30:02 2018 UTC travis integration commit - 626112c64b0fddfa66ece5b6396cec70c308b5bd commit + b6834000aecf1329001b26123bac1f4fe503fb64 blob - /dev/null blob + 18986ab5a33e9b3c183230b6add87243e785aef9 (mode 644) --- /dev/null +++ .travis.yml @@ -0,0 +1,39 @@ +--- +sudo: required +dist: trusty + +language: python +python: "2.7" + +env: + - ANSIBLE_VERSION=latest + - ANSIBLE_VERSION=2.2.2.0 + - ANSIBLE_VERSION=2.2.1.0 + - ANSIBLE_VERSION=2.2.0.0 + - ANSIBLE_VERSION=2.1.5 + - ANSIBLE_VERSION=2.1.4 + - ANSIBLE_VERSION=2.1.3 + - ANSIBLE_VERSION=2.1.2 + - ANSIBLE_VERSION=2.1.1.0 + - ANSIBLE_VERSION=2.1.0.0 + - ANSIBLE_VERSION=2.0.2.0 + - ANSIBLE_VERSION=2.0.1.0 + - ANSIBLE_VERSION=2.0.0.2 + - ANSIBLE_VERSION=2.0.0.1 + - ANSIBLE_VERSION=2.0.0.0 + - ANSIBLE_VERSION=1.9.6 + +branches: + only: + - master + +before_install: + - sudo apt-get update -qq + +install: + - if [ "$ANSIBLE_VERSION" = "latest" ]; then pip install ansible; else pip install ansible==$ANSIBLE_VERSION; fi + - if [ "$ANSIBLE_VERSION" = "latest" ]; then pip install ansible-lint; fi + +script: + - ansible-playbook --list-tasks -l localhost machine.yml + - ansible-playbook --syntax-check -l localhost machine.yml