Add travis tests

This commit is contained in:
ant31
2015-12-22 11:50:55 +01:00
parent 8fa0110e28
commit 9a03249446
4 changed files with 71 additions and 9 deletions

View File

@@ -1,7 +1,8 @@
---
- name: "Identify init system"
shell: >
if $(pgrep systemd > /dev/null); then
$(pgrep systemd > /dev/null && systemctl status > /dev/null);
if [ $? -eq 0 ] ; then
echo systemd;
else
echo sysvinit;