Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.*.sw*
.vagrant/
.kitchen/
.kitchen/
*.retry
25 changes: 17 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -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"