diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..76e9f0e --- /dev/null +++ b/.travis.yml @@ -0,0 +1,18 @@ +--- +language: objective-c + +os: + - osx + +osx_image: xcode7 + +install: + - sudo easy_install pip + - sudo pip install ansible + - mkdir -p /tmp/roles + - "{ echo '[defaults]'; echo 'roles_path = ../:/tmp/roles'; } >> ansible.cfg" + - ansible-galaxy install -f -r tests/requirements.yml -p /tmp/roles + +script: + - "ansible-playbook -i tests/inventory tests/travis.yml --syntax-check" + - "ansible-playbook -i tests/inventory tests/travis.yml --connection=local" diff --git a/tests/inventory b/tests/inventory new file mode 100644 index 0000000..2fbb50c --- /dev/null +++ b/tests/inventory @@ -0,0 +1 @@ +localhost diff --git a/tests/requirements.yml b/tests/requirements.yml new file mode 100644 index 0000000..e7bafa6 --- /dev/null +++ b/tests/requirements.yml @@ -0,0 +1,3 @@ +--- + +- src: roderik.superlumic-homebrew diff --git a/tests/travis.yml b/tests/travis.yml new file mode 100644 index 0000000..a10993d --- /dev/null +++ b/tests/travis.yml @@ -0,0 +1,6 @@ +--- +- hosts: 127.0.0.1 + connection: local + + roles: + - ansible-role-sublimetext