Ubuntu Pastebin

Paste from charles at Thu, 22 Jan 2015 17:32:29 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/make

build: virtualenv lint test

virtualenv: .venv/bin/python
.venv/bin/python:
	sudo apt-get install python-virtualenv
	virtualenv .venv
	.venv/bin/pip install nose flake8 mock pyyaml charmhelpers ansible-lint ansible

lint:.venv/bin/python
	@echo Linting Charm
	@charm proof
	@echo Linting Ansible Routines
	@.venv/bin/ansible-lint playbooks/*
	@.venv/bin/ansible-playbook -i docs/faux-inventory.conf --syntax-check playbooks/site.yaml

clean:
	rm -rf .venv
	find -name *.pyc -delete
Download as text