Skip to content

Commit

Permalink
Merge pull request #446 from wireload/travis-ansible
Browse files Browse the repository at this point in the history
Adds syntax check for Ansible on CI.
  • Loading branch information
vpetersson committed Jun 21, 2016
2 parents d0298ad + 418c0bb commit bf74616
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
6 changes: 4 additions & 2 deletions .travis.yml
Expand Up @@ -13,6 +13,8 @@ before_script:
- mkdir -p ~/.screenly ~/.config/uzbl/
- cp ansible/roles/screenly/files/uzbl-config ~/.config/uzbl/config-screenly
- cp ansible/roles/screenly/files/screenly.conf ~/.screenly/
script: nosetests -v -a '!fixme'

- echo -e "[local]\nlocalhost ansible_connection=local" > ansible/localhost
script:
- nosetests -v -a '!fixme'
- ansible-playbook --syntax-check -i ansible/localhost ansible/site.yml
sudo: false
2 changes: 1 addition & 1 deletion bin/install.sh
Expand Up @@ -59,7 +59,7 @@ sudo apt-get update
sudo apt-get remove -y python-setuptools python-pip
sudo apt-get install -y python-dev git-core libffi-dev libssl-dev
curl -s https://bootstrap.pypa.io/get-pip.py | sudo python
sudo pip install ansible==2.0.2.0
sudo pip install ansible==2.1.0.0

ansible localhost -m git -a "repo=${1:-http://github.com/wireload/screenly-ose.git} dest=/home/pi/screenly version=$BRANCH"
cd /home/pi/screenly/ansible
Expand Down
3 changes: 2 additions & 1 deletion requirements.txt
@@ -1,6 +1,7 @@
Mako==0.7.3
PyHAML==0.1.9
MarkupSafe==0.15
PyHAML==0.1.9
ansible==2.1.0.0
bottle-haml==0.1.4
bottle==0.12.9
certifi==2015.04.28
Expand Down

0 comments on commit bf74616

Please sign in to comment.