@@ -11,24 +11,29 @@ services:
1111
1212before_install :
1313 - sudo apt-get update -qq
14- - sudo apt-get install -qq python-apt
14+ - sudo apt-get install -qq python-apt ruby
1515
1616install :
17- - pip install ansible==1.9.2
17+ - pip install ansible==1.9.4
18+ - sudo gem install busser --no-ri --no-rdoc
19+ - sudo busser plugin install busser-bats
1820
1921script :
2022 - echo localhost > inventory
2123 - ansible-galaxy install -r requirements-test.txt -p ../
2224 - ansible-playbook -i inventory --syntax-check test/integration/default/default.yml
2325 - ansible-playbook -i inventory --connection=local --sudo -vvvv test/integration/default/default.yml
24- #
25- # Run the role/playbook again, checking to make sure it's idempotent. Ansible
26- # will always return "changed=2" because the "angstwad.docker_ubuntu" role uses
27- # pip to update "docker-py" and "docker-compose" and the status returned from
28- # pip is meaningless.
29- #
26+ #
27+ # Run the role/playbook again, checking to make sure it's idempotent. Ansible
28+ # will always return "changed=2" because the "angstwad.docker_ubuntu" role uses
29+ # pip to update "docker-py" and "docker-compose" and the status returned from
30+ # pip is meaningless.
31+ #
3032 - >
3133 ansible-playbook -i inventory --connection=local --sudo -vvvv test/integration/default/default.yml
3234 | grep -q 'changed=2.*failed=0'
3335 && (echo 'Idempotence test: pass' && exit 0)
3436 || (echo 'Idempotence test: fail' && exit 1)
37+
38+ # Run the Test Kitchen tests.
39+ - sudo /opt/busser/vendor/bats/bin/bats ./test/integration/default/bats/*.bats
0 commit comments