Fixed test and added travis.

This commit is contained in:
Werner Dijkerman
2016-01-31 18:41:25 +01:00
parent 66e20cd7f6
commit e2205aa7d8
2 changed files with 16 additions and 1 deletions

15
.travis.yml Normal file
View File

@ -0,0 +1,15 @@
---
language: python
python: "2.7"
before_install:
- sudo apt-get update -qq
- sudo apt-get install -qq python-apt python-pycurl
install:
- pip install ansible==1.9.4
- echo -e 'localhost ansible_connection=local' > test/inventory
- echo -e '[defaults]\nroles_path = ../\nhostfile = ./test/inventory' > ansible.cfg
script:
- ansible-playbook test/integration/default.yml --syntax-check
- ansible-playbook test/integration/default.yml --connection=local --sudo
notifications:
webhooks: https://galaxy.ansible.com/api/v1/notifications/

View File

@ -15,7 +15,7 @@ describe 'Telegraf Services' do
end
describe 'Telegraf Configuration' do
describe file('/etc/opt/telegraf/telegraf.conf') do
describe file('/etc/telegraf/telegraf.conf') do
it { should be_file}
it { should be_owned_by 'root'}
it { should be_grouped_into 'root'}