Skip to content

Commit

Permalink
Merge pull request #8 from UnderGreen/travis_ci
Browse files Browse the repository at this point in the history
Travis ci integration
  • Loading branch information
UnderGreen authored Jul 27, 2016
2 parents 6eba5d0 + a7c2917 commit 1eb9b57
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 1 deletion.
29 changes: 29 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
language: python
python: "2.7"

# Use the new container infrastructure
sudo: false

# Install ansible
addons:
apt:
packages:
- python-pip

install:
# Install ansible
- pip install ansible==2.0.2.0

# Check ansible version
- ansible --version

# Create ansible.cfg with correct roles_path
- printf '[defaults]\nroles_path=../' >ansible.cfg

script:
# Basic role syntax check
- ansible-playbook tests/test.yml -i tests/inventory --syntax-check

notifications:
webhooks: https://galaxy.ansible.com/api/v1/notifications/
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Ansible Role: prometheus
# Ansible Role: prometheus [![Build Status](https://travis-ci.org/UnderGreen/ansible-prometheus.svg?branch=travis_ci)](https://travis-ci.org/UnderGreen/ansible-prometheus)

An Ansible role that installs Prometheus Monitoring server on Ubuntu-based machines with systemd.

Expand Down
1 change: 1 addition & 0 deletions tests/inventory
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
localhost
5 changes: 5 additions & 0 deletions tests/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
- hosts: localhost
remote_user: root
roles:
- ansible-prometheus

0 comments on commit 1eb9b57

Please sign in to comment.