diff --git a/.gitignore b/.gitignore index 0bc4fb4..ffc0f91 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ .*.sw* .vagrant/ -.kitchen/ \ No newline at end of file +.kitchen/ +*.retry \ No newline at end of file diff --git a/.travis.yml b/.travis.yml index dec7ee7..2e965cd 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,17 +1,26 @@ --- language: python python: "2.7" +services: + - docker + before_install: + # Make sure everything's up to date. - sudo apt-get update -qq + - sudo apt-get install -qq python-apt python-pycurl git python-pip ruby ruby-dev build-essential autoconf + - gem install bundler + # Get ansible install + - curl -s https://raw.githubusercontent.com/AutomationWithAnsible/ansible-setup/master/example/travis_2.x.sh -o /tmp/travis-ansible-setup.sh + install: - # Install Ansible. - - pip install ansible + - bash /tmp/travis-ansible-setup.sh + - bundle install - # Create an inventory file for testing. - - "printf 'rabbit-standalone ansible_ssh_host=localhost' > inventory" script: - # Check the role/playbook's syntax. - - "ansible-playbook -i inventory vagrant/site.yml --syntax-check" + - ansible --version + - export TRAVIS=True + - bundle exec kitchen list + - bundle exec kitchen test --destroy=always standalone - # NOTE(retr0h): Testing standalone until we can test a cluster with travis. - - "ansible-playbook -vvvv -i inventory vagrant/standalone.yml --connection=local --sudo" +after_success: + - echo "Success"